test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • epicweb Friend
    #189165

    First of all, I’m new to the T3 framework, but don’t think I will ever build another site without it. Most of the T3_blank customization is very intuitive. I’ve been able to customize the Theme Magic less variables, customize blocks, etc. Powerful stuff.

    I would really like to use some custom template variables to modify html overrides from the backend. Adding the variables is easy, but I’ve tried and read everything I can think of to actually use those outside of the template files and just can’t seem to get it. So, if this is added to the templateDetails.xml:


    <fields name="params" addfieldpath="/plugins/system/t3/includes/depend">
    <fieldset name="custom_icon" label="Custom Icon">
    <field name="authorIcon" type="list" label="Author Icon" default="icon-user" >
    <option value="icon-user">icon-user</option>
    </field>
    </fieldset>
    </fields>

    and then there is a standard template html com_content override… how can I use $authorIcon as a variable? I’ve tried calling it from the template, and the system T3 plugin — no luck. Help would be appreciated.

    Using Joomla 3.1 and the latest T3 framework and T3_blank.

    Thanks in advance.

    Aubrey

    epicweb Friend
    #499935

    Easier than I thought. I just had a syntax error in what I was trying. This will return the template variable value:

    $app = JFactory::getApplication(‘site’);
    $template = $app->getTemplate(true);
    $fieldvalue = $template->params->get(‘fieldName’);

    Ninja Lead Moderator
    #500136

    Wow! That’s great! Excellent!

    ilet Friend
    #518132

    Thanks. Reasons why I like forums over support tickets.

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

This topic contains 4 replies, has 3 voices, and was last updated by  ilet 10 years, 10 months ago.

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