Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • polo974 Friend
    #206341

    Hi,

    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 Moderator
    #570782

    Hi @polo974,

    May I know your site url so I can have a look first ?

    polo974 Friend
    #570832

    Sure,

    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 Friend
    #735894

    Sure,

    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 Moderator
    #570963

    Hi @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.

    polo974 Friend
    #570973

    Hey 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 !:)

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  polo974 9 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum