-
AuthorPosts
-
Tech-xml Friend
Tech-xml
- Join date:
- October 2010
- Posts:
- 765
- Downloads:
- 39
- Uploads:
- 140
- Thanks:
- 106
- Thanked:
- 5 times in 2 posts
November 25, 2014 at 1:22 am #203033I’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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 26, 2014 at 7:28 am #556592May I know which block team and which module are you referring to?
Tech-xml FriendTech-xml
- Join date:
- October 2010
- Posts:
- 765
- Downloads:
- 39
- Uploads:
- 140
- Thanks:
- 106
- Thanked:
- 5 times in 2 posts
November 26, 2014 at 4:03 pm #556656Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
November 27, 2014 at 2:37 am #556723You 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>
– 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/5ajz9h5 users say Thank You to Saguaros for this useful post
Tech-xml FriendTech-xml
- Join date:
- October 2010
- Posts:
- 765
- Downloads:
- 39
- Uploads:
- 140
- Thanks:
- 106
- Thanked:
- 5 times in 2 posts
March 22, 2015 at 6:46 pm #564133Excellent, thanks.
stulaine Friendstulaine
- Join date:
- February 2014
- Posts:
- 106
- Downloads:
- 194
- Uploads:
- 9
- Thanks:
- 20
- Thanked:
- 24 times in 2 posts
May 30, 2015 at 7:09 am #572389If 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 Friendcitroen1968a
- Join date:
- June 2014
- Posts:
- 95
- Downloads:
- 185
- Uploads:
- 25
- Thanks:
- 19
- Thanked:
- 11 times in 1 posts
June 18, 2015 at 3:04 pm #574635Hi 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 Friendstulaine
- Join date:
- February 2014
- Posts:
- 106
- Downloads:
- 194
- Uploads:
- 9
- Thanks:
- 20
- Thanked:
- 24 times in 2 posts
June 18, 2015 at 4:11 pm #574640The 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.
2 users say Thank You to stulaine for this useful post
AuthorPostsViewing 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
Block Teams with Links
Viewing 9 posts - 1 through 9 (of 9 total)