-
AuthorPosts
-
October 27, 2013 at 3:06 am #191740
I would like to be able to link articles with the category of News to artists, in the same manner in which Videos and Audios are linked. I tried to changing the Template Config of General to News. However, that causes the Artist name hyperlink on the Artists page (see sample link below) to change to News along with the General link. It also causes the incorrect Artist Avatar to render.
Is there a way to add News articles to specific Artists? Thanks
Dave
http://joomla-templates.joomlart.com/ja_muzic/index.php/en/artists/95-rihanna
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
October 30, 2013 at 2:13 am #510596
Hi Dave,The above link: http://joomla-templates.joomlart.com/ja_muzic/index.php/en/artists/95-rihanna is also an article named ‘Rihanna’.
So adding a News article to another article is not reasonable, could you specific your idea here?
October 30, 2013 at 7:56 pm #510712I would like to attach separate articles to the artist article in the same fashion in which photos are attached. See Screen Shot #1. The photo links (i.e.: Event #1 Pics, Event #2 Pics, Event #3 Pics) are links to additional articles containing photos using the ‘default-photo’ alternative layout. I would like to add another type of article layout, such as for Press Releases.
On Screen Shot #2, you will see the additional nav option for Press Releases. In this view, there are links for one or more new articles (i.e.: Press Release #1, Press Release #2, Press Release #3). Clicking on any of these article links will open that article as seen in Screen Shot #3.
Is this possible? Is it just a matter of cloning the alt layout for ‘default-photo’ and adding a link to the Artist nav bar?
Screen Shot #1
Screen Shot #2
Screen Shot #3
- Saguaros Moderator
Saguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 23, 2013 at 3:39 am #513225It must be confirmed that this is customize work as you need custom layout of com_content to achieve that. Here is my suggestion:
Add ‘Press Release’ parameter in template config
– Open file: /templates/ja_muzic/templateDetails.xml
– Just under the fieldset tag, add a new field
<fieldset name="muzic_params">
<field
name="press_release"
type="category"
extension="com_content"
published=""
label="TPL_COM_CONTENT_CATEGORY_PRESSRELEASE"
description="TPL_COM_CONTENT_CATEGORY_PRESSRELEASE_DESC">
<option value="">TPL_COM_CONTENT_NO_CATEGORIES</option>
</field>
– Label and description need translating in /languages/en-GB/en-GB.tpl_ja_muzic.iniTPL_COM_CONTENT_CATEGORY_PRESSRELEASE=”Press Release”
TPL_COM_CONTENT_CATEGORY_PRESSRELEASE_DESC=”Selected Category Press Release”Add code to artist article
– Open file: /templates/ja_muzic/html/com_content/article/default-artist.php
– Before code for General link, add this code:
//Press release Links
$photos_category = $tplparams->get('press_release');
if(isset($photos_category)){
$link_category['pressrelease'] = new stdClass();
$link_category['pressrelease']->url= JRoute::_(ContentHelperAuthorRoute::getAuthorRoute($photos_category,$authoruser->username));
$link_category['pressrelease']->catid = $photos_category;
}
//General Link
//override author by ja templates
........
Finally, you create a new category named: Press Release and add all articles for this category, it’s the same with Photos[/ B] category
AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by Saguaros 11 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum