Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Josh Friend
    #964078

    Hi there,

    I’d noticed that there’s a button with the word ‘Advanced’ in the edit mode of JoomlArt Advanced Custom Module. When clicked, there’s a popup window with the ‘ACM Data’.

    Now, I’m referring to the Type: Features Intro : style-absolute

    In the Features Detail, there are 4 blanks per row i.e.
    Feature Title
    Tagline
    Feature Description
    Icon Image

    There is no blank for URL Link for the Icon Image. I want to specify an unique URL link which upon clicking on the Icon Image, the website visitor will be taken to that linked page.

    Please advise how to do that? I attach screen shots for your reference.

    TQ!


    1. Charity_-_Administration_-_Modules_JoomlArt_Advanced_Custom_Module_-_2016-08-30_10.49.54
    2. Charity_-_Administration_-_Modules_JoomlArt_Advanced_Custom_Module_-_2016-08-30_10.50.13
    Saguaros Moderator
    #964471

    Hi Josh,

    You will need to customise a bit. Below is my tweak:

    • Go to file: ROOT/templates/ja_charity/acm/features-intro/tmpl/style-absolute.xml

    Look for this fieldset and add item for icon-link as below:

    <fieldset name="section-features" label="FEATURES_SECTION_LABEL" description="FEATURES_SECTION_DESC">
    <field name="data" type="jalist" >
        <item name="title" type="text" default="" size="40" label="FEATURES_TITLE_LABEL" description="FEATURES_TITLE_DESC" required="1" />
        <item name="title-tagline" type="text" default="" label="FEATURES_TAGLINE_LABEL" description="FEATURES_TAGLINE_DESC" />
        <item name="description" type="textarea" default="" label="FEATURES_DESCRIPTION_LABEL" description="FEATURES_DESCRIPTION_DESC" rows="5" cols="40" />
        <item name="icon-link" size="50" type="text" default="" label="FEATURES_ICON_LINK_LABEL" description="FEATURES_ICON_LINK_LABEL" />
        <item name="icon-image" type="media" default="" label="FEATURES_ICON_LABEL" description="FEATURES_ICON_DESC"/>
    </field>
    </fieldset>
    • Open PHP file: ROOT/templates/ja_charity/acm/features-intro/tmpl/style-absolute.php

    And update like this:

    <div class="clearfix">
    <?php $count = $helper->getRows('data.title'); ?>
    <?php for ($i=0; $i<$count; $i++) : 
        $iconLink = $helper->get('data.icon-link',$i);
    ?>
    <div class="col-md-6 feature-item">
        <div class="workflow-ct">
    <div class="workflow-title">
    <?php if($helper->get('data.icon-image',$i)) : ?>
        <div class="icon">
        <?php if($iconLink):?><a href="<?php echo $iconLink; ?>"><?php endif; ?>
            <img src="<?php echo $helper->get('data.icon-image', $i) ?>" alt="<?php echo $helper->get('data.title', $i) ?>"/>
        <?php if($iconLink):?></a><?php endif; ?>   
        </div>
    <?php endif ; ?>

    I attach these 2 files here so you can have a look.


    1. style-absolute.zip
    Josh Friend
    #964835

    Thanz Saguaros… works like a charm!

    How do I change the label FEATURES_ICON_LINK_LABEL ?


    1. Charity_-_Administration_-_Modules_JoomlArt_Advanced_Custom_Module_-_2016-09-01_16.25.26
    Saguaros Moderator
    #964842

    You can add translation for this text into the language file of template: ROOT/language/en-GB/en-GB.tpl_ja_charity.ini

    FEATURES_ICON_LINK_LABEL = "YOUR _DESIRED_TEXT_HERE"

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

This topic contains 3 replies, has 2 voices, and was last updated by  Saguaros 8 years, 2 months ago.

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