Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Tech-xml Friend
    #203033

    I’m using Uber layout University. I want to do a showcase to show teachers using the block teams. However it does not give the option to insert links, need this function to redirect to the teacher’s details page.

    It is possible to make a small hack in this module for this function?

    Saguaros Moderator
    #556592

    May I know which block team and which module are you referring to?

    Tech-xml Friend
    #556656

    Style Module 3 – The link will be employed in the participant’s name


    1. Teams_Block
    Saguaros Moderator
    #556723

    You will need to customize the JA ACM – type of ‘Team’ a little bit. Below is my workaround:
    – Go to XML file: templatesuberacmteamsconfig.xml , look at the fieldset ‘member-info’, you add a new field:

    <field name="member-link" type="text" default="" label="TEAM_MEMBER_LINK_LABEL" description="TEAM_MEMBER_LINK_DESC" ></field>

    http://prntscr.com/5ajwdc

    – Open the associated PHP file of style 3 which you’re using: templatesuberacmteamstmplstyle-3.php and replace this:


    <div class="member-image">
    <img src="<?php echo $helper->get('member-image', $i); ?>" alt="<?php echo $helper->get('member-name', $i); ?>" />
    </div>

    With:


    <div class="member-image">
    <a href="<?php echo $helper->get('member-link', $i); ?>" title="">
    <img src="<?php echo $helper->get('member-image', $i); ?>" alt="<?php echo $helper->get('member-name', $i); ?>" />
    </a>
    </div>

    Then you go to backend settings of this module, it will have a new option for each group so that you can add your favor link there: http://prntscr.com/5ajxbk

    For translating some new texts added in above XML file, you can go to language file of Uber: /language/en-GB/en-GB.tpl_uber.ini and add this text field:


    TEAM_MEMBER_LINK_LABEL ="Member Link"
    TEAM_MEMBER_LINK_DESC ="Add URL links to member page"

    http://prntscr.com/5ajz9h

    Tech-xml Friend
    #556864

    Excellent – solved. Thank @saguaros

    lo30sopa6 Developer
    #564133

    Excellent, thanks.

    stulaine Friend
    #572389

    If you are only looking to add a link to the individuals title then you can do the following as a more simple way by putting this code as an example in the field for the title.

    <a href=”http://www.w3schools.com/html/”>Title of the Team Member</a>

    This would also work for the member name.

    _______________________________________________

    It should be noted that the solution provided earlier is a good one as well but has been deprecated by the newer Uber version.

    Adding a new field would now be done in the style-3.xml file

    Also not that updating the ACM will probably overwrite your changes.

    I personally wanted to have the link on the image so I went with the solution provided earlier.

    citroen1968a Friend
    #574635

    Hi Saguaros,

    when i look at the xml file

    I see only this

    uber/templates/uber/acm/teams/config.xml

    <?xml version=”1.0″ encoding=”utf-8″?>
    <form>
    <title>Teams</title>
    </form>

    stulaine Friend
    #574640

    The directories changed between acm versions. Go to the tmpl directory under teams and find the style-3.xml file. That is the file you want.

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

This topic contains 9 replies, has 5 voices, and was last updated by  stulaine 9 years, 4 months ago.

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