-
AuthorPosts
-
polo974 Friend
polo974
- Join date:
- May 2015
- Posts:
- 63
- Downloads:
- 133
- Uploads:
- 4
- Thanks:
- 13
- Thanked:
- 5 times in 2 posts
May 14, 2015 at 2:01 pm #206341Hi,
I would like to display my featured articles on a blog, with the same layout than xLayout-blog (with the big date on the left). Is that possible ? Can you tell me how to do it ?
Thx,
Polo
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
polo974 Friendpolo974
- Join date:
- May 2015
- Posts:
- 63
- Downloads:
- 133
- Uploads:
- 4
- Thanks:
- 13
- Thanked:
- 5 times in 2 posts
May 17, 2015 at 12:14 pm #570832Sure,
You can have a look here :
http://polymetis.fr/gmpca/actualites-du-gmpca
This is a page showing the featured articles of a certain category.
I’d like to display them with the Xlayout (blog), like on this page :
http://polymetis.fr/gmpca/association-gmpca
Do you know if it’s possible ?
polo974 Friendpolo974
- Join date:
- May 2015
- Posts:
- 63
- Downloads:
- 133
- Uploads:
- 4
- Thanks:
- 13
- Thanked:
- 5 times in 2 posts
May 17, 2015 at 12:14 pm #735894Sure,
You can have a look here :
http://polymetis.fr/gmpca/actualites-du-gmpca
This is a page showing the featured articles of a certain category.
I’d like to display them with the Xlayout (blog), like on this page :
http://polymetis.fr/gmpca/association-gmpca
Do you know if it’s possible ?
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
May 18, 2015 at 3:55 pm #570963Hi @polo974,
Actually it’s possible to do that as you need to duplicate 2 files templatesuberhtmlcom_contentcategoryxblog.xml and templatesuberhtmlcom_contentcategoryxblog.php, rename it then replace the function to choose 1 category with another function used to specify several categories (you can see the code here componentscom_contentviewsfeaturedtmpldefault.xml).
But I’m afraid that such task is beyond our support scope and you will have to hire a developer to implement it for you if you’re not familiar with.
1 user says Thank You to Adam M for this useful post
polo974 Friendpolo974
- Join date:
- May 2015
- Posts:
- 63
- Downloads:
- 133
- Uploads:
- 4
- Thanks:
- 13
- Thanked:
- 5 times in 2 posts
May 18, 2015 at 5:57 pm #570973Hey man,
I want to click more time on the thank you button !!
I followed your instructions, it worked well in back end, but not in front end (and by the way, if I rename the files, they are not appearing in my back end, i’had to modify the original one… Can you explain me why ?)
So with your instructions and the default.xml file, I’ve found another way :
I took the following fields in details.xml
<field
name=”orderby_sec”
type=”list”
description=”JGLOBAL_ARTICLE_ORDER_DESC”
label=”JGLOBAL_ARTICLE_ORDER_LABEL”
>
<option value=””>JGLOBAL_USE_GLOBAL</option>
<option value=”front”>COM_CONTENT_FEATURED_ORDER</option>
<option value=”rdate”>JGLOBAL_MOST_RECENT_FIRST</option>
<option value=”date”>JGLOBAL_OLDEST_FIRST</option>
<option value=”alpha”>JGLOBAL_TITLE_ALPHABETICAL</option>
<option value=”ralpha”>JGLOBAL_TITLE_REVERSE_ALPHABETICAL</option>
<option value=”author”>JGLOBAL_AUTHOR_ALPHABETICAL</option>
<option value=”rauthor”>JGLOBAL_AUTHOR_REVERSE_ALPHABETICAL</option>
<option value=”hits”>JGLOBAL_MOST_HITS</option>
<option value=”rhits”>JGLOBAL_LEAST_HITS</option>
<option value=”order”>JGLOBAL_ORDERING</option>
</field><field
name=”show_featured”
type=”list”
default=””
label=”JGLOBAL_SHOW_FEATURED_ARTICLES_LABEL”
description=”JGLOBAL_SHOW_FEATURED_ARTICLES_DESC”
>
<option value=””>JGLOBAL_USE_GLOBAL</option>
<option value=”show”>JSHOW</option>
<option value=”hide”>JHIDE</option>
<option value=”only”>JONLY</option>
</field>I added it in my xblog.xml file, and now I can chose to display only the featured articles of a certain category on my xblog page, which was exactly what I wanted to do ! Maybe this option can be implemented directly in uber in an update ?
I’ll also trying to figure out why the first things you told me didn’t worked, because I need also a blog of featured articles from several categories. If I found a solution I’ll will explain it here !
Thank you !:)
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by polo974 9 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum