Shape 5

Joomla Templates => Corpway - Club => : agould June 16, 2014, 07:59:02 AM



: New module position and styling
: agould June 16, 2014, 07:59:02 AM
Thanks for this new template; neat and clean!

We use Community Builder and I have changed the Login to display the CB login in the S5 Box, which is great. Once logged in I would like to display a link to the CB profile page to the right of the 'Logout' link i.e. replace 'Register' with 'My account'.

I am wondering what the best way to do this is. I have created a menu for the CB Profile (this is required anyway) and then a module set to display for registered users. Although the template lists the positions Login and Register these do not work if I select them, and adding ?tp=1 does not display them as module positions.

I have therefore tried to solve this by creating a new module position 'Account', and adding the appropriate entries to index.php, templateDetails.xml and custom.css. However this does not work as expected.

I appreciate this is indicative of my lack of php etc skills but I have been trying to work this out for a while and would be grateful for some advice.

TIA


: Re: New module position and styling
: mikenicoll June 16, 2014, 01:17:32 PM
Hello,

Login/Register are not module positions, they are hard coded into the index.php to interact with S5 Box. You can set the links to redirect to alternate URLs in the Template Manager if you like so when they are clicked they could redirect to a page of your choice.

To add another module position would require some custom work but we have a video tutorial here that explains how to get started. You may need to tinker with the placement of your module within the index and alter its position with margins.

http://www.youtube.com/watch?v=Yc_vrJnwk-s

-Mike


: Re: New module position and styling
: agould June 18, 2014, 01:10:34 AM
Thanks. I have done that and placed the new module in a div and styled it. I will experiment!


: Re: New module position and styling
: mikenicoll June 18, 2014, 07:06:49 AM
Sounds good!

-Mike