By Danny Malouin on Wednesday, 04 April 2018
Posted in General Issues
Replies 15
Likes 0
Views 592
Votes 0
Good day

If we want to modify the pages layout, how would one go about this ?

Some examples of what we would like to accomplish:


  1. Change some of the sidebar links/modules.

  2. Add custom menu links in the "Timeline | About | Videos | Events | More" menu.

  3. Change the width of the sidebar

Any suggestions hre woulb be appreciated
Thanks
Danny
Hi Danny,

Kindly find my response for your inquiries below:
Change some of the sidebar links/modules.

I'm not so sure which sidebar module that are you referring to, perhaps it is the sidebar widget where actually you can change in the application>choose app example: http://take.ms/wDYt4
Perhaps, can you give us some screenshot so we can know which module/widget that are you referring to?

Add custom menu links in the "Timeline | About | Videos | Events | More" menu

You can do costumization in the file:
.../components/com_easysocial/themes/wireframe/toolbar/default.php
*You can also do template override for this file

Change the width of the sidebar

Can you give us the link to the page so we can have a better look and try the suitable css code to be applied?
·
Wednesday, 04 April 2018 12:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Good day to you,

Please see the attached/linked screenshot
https://www.screencast.com/t/anoVrJYBl

The actual URL is:
https://soccer.dasport.zone/en/network/fc-trois-lacs/fc3lacs-u12m-a-d1

I have highlighted

1- The menu bar where I would like to add custom links and remove

Note: I would like to do this on a per page situation. For example, I would like one page to have a link to it's parent league and another page be a different link. So, I can't just hack the menu file for this as this would make all menus have the same link. Any thoughts on adding custom links to a page menu ?

2- The sidebar where I would like to remove some groups and possibly customize with my own. Is this an actual template position I can add Joomla modules too ?

Note: I saw how to customize it with the Application configs. Thanks.
A) I would still like to know if I can place custom Joomla modules in this sidebar somehow ?
B) Can we change the order of the app/widgets in the sidebar ?

Thanks
Danny
·
Wednesday, 04 April 2018 17:14
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Danny for the screenshot, I have a better view now
1- The menu bar where I would like to add custom links and remove

The actual file for customize this menu is under this file:
.../components/com_easysocial/themes/wireframe/helpers/cover/page.php
where you can do template override for this file.

2- The sidebar where I would like to remove some groups and possibly customize with my own. Is this an actual template position I can add Joomla modules too ?

Some of the sidebar widget can't hide with application setting(hardcoded) such as the (details,newsfeed) and for the follower, announcement and photo album you can disable/enable it through applications(pages) setting as example: http://take.ms/FBKuz
and yes you also can add any module inside the sidebar(pages) using the position below:

es-pages-item-sidebar-top

or

es-pages-item-sidebar-bottom
·
Wednesday, 04 April 2018 18:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your replies
I was able to work with the positions you gave me to acheive what I wanted
Still need some help managing the menu bar links though since this needs to be relative to the page in question not on all pages.
Thanks
Danny
·
Friday, 06 April 2018 05:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Danny,

Still need some help managing the menu bar links though since this needs to be relative to the page in question not on all pages.

If I understand you correctly, you want to add/custom menu in specific pages only and not to overall pages yes? For that, you need make some checking in that file as well
·
Friday, 06 April 2018 11:08
·
0 Likes
·
0 Votes
·
0 Comments
·
IF you have a moment, I would appreciated your dev team's advise in in getting us an example (snippet) of code to achieve this

Something like

If PAGE = CURRENT, then echo "link123" ...

Just so I get this done right through my own programming team

Thanks
Danny
·
Friday, 06 April 2018 20:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Danny,

Hm, not really sure if I understand you here. Do you mean page as in pages in EasySocial?
·
Saturday, 07 April 2018 01:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi
Sorry for my lack of clarity

I was actually wondering how you (or your devs) would go about creating a condition in Pages to render a menu link based on the current page's and a custom field ?

Thanks
Danny
·
Saturday, 07 April 2018 04:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Danny,

I am really sorry for the delay of this reply as it is a weekend for us here. If I am understanding you correctly here, assuming that you only want to render some output for a specific page with an id of 10, you could do something like this,

[gist]
<?php if ($page->id == 10) { ?>
Do something here
<?php } ?>
[/gist]

This can only be added on the theme file /components/com_easysocial/pages/item/default.php
·
Saturday, 07 April 2018 18:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
Ya, something like that, thanks.
I wonder how difficult it would be to turn this into a custom field concept so admins (or even page owners) could manage custom links in their page menus ?
Danny
·
Thursday, 12 April 2018 02:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Danny,

It is quite difficult to implement custom field as this cover(menu) doesn't have this section.
Perhaps, you can suggest this by create a new ticker under feature request, if this catch other user's attention as well maybe our developer can consider this in the future
·
Thursday, 12 April 2018 11:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post