Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-12-22 21:33:10

dvdfan001
Member
Registered: 2014-04-27
Posts: 158

Pages not capable of acting as a repository for common resource

I need assistance for following issue:
In pages plugin as well in all other used plugins and corresponding templates (for galleries and autoindex) I have enabled PHPlugin, custom css and the share resources function in the output module.

Following example:
I want to kick off one of my navigation hyperlinks I have specified in the site information module. I want to have one less menu in website navigation bar.

I did corresponding changes in Pages and uploaded them.
Home and galleries site are OK because they use the new settings directly from pages
I all other cases where either other templates or other auto indexes are used the new settings are NOT reflected.

Can anybody please can me an instruction how to go on? Perhaps Rod would be the best to give precise advice. ;-)
Thanks in advance

Offline

#2 2015-12-22 22:19:46

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Pages not capable of acting as a repository for common resource

If you've already enabled PHPlugins, then your best option is probably to write a menu replacement function.

Some example menu functions can be found here:
http://ce4.theturninggate.net/docs/doku … navigation

I think Rod may also have a more thorough explanation on this ttg-tips site.


Matt

The Turning Gate, http://theturninggate.net

Offline

#3 2015-12-22 23:06:58

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pages not capable of acting as a repository for common resource

Yep. If you're not already managing your navigation with phplugins:
http://ttg-tips-and-tricks.barbeephoto. … phplugins/

If you are, then simply edit the nav menu in your phplugins file, removing the link.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#4 2015-12-23 01:04:40

dvdfan001
Member
Registered: 2014-04-27
Posts: 158

Re: Pages not capable of acting as a repository for common resource

Thanks for your support !

Works fine, super easy.

Last questions related to that topic:
How do I have to modify in the php file the expression"<span><a href="/contact.php">Contact</a></span>" in case that I want to:
- target an external link
- open the link in a new window


How could I integrate a further icon (and corresponding link) for an additional social media profile?
It should be in addition to the already specified ones from the social media profiles in the site information module

Offline

#5 2015-12-23 01:15:31

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pages not capable of acting as a repository for common resource

targeting an external link is covered in the ttg-tips post: http://ttg-tips-and-tricks.barbeephoto. … phplugins/

To make it open in a new window, just add target="_blank" to the url. For example:

<a href="http://www.othersite.com" target="_blank">Visit this site</a>

A lot more here: http://www.w3schools.com/html/html_links.asp


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#6 2015-12-23 02:35:37

dvdfan001
Member
Registered: 2014-04-27
Posts: 158

Re: Pages not capable of acting as a repository for common resource

Sorry, you already gave the information in your previous link ;-(

As far as the modification of the social media profiles is concerned I'm not ready to go.
Is there a possibility to do these changes in the same easy manner as the navigation with phplugins?


In case of only updating the link for an already existing social media profile (part of pages upload):
Does also exist the possibility to pass this information over to all other sites. Location to make this centrally modification?

Last edited by dvdfan001 (2015-12-23 02:49:11)

Offline

#7 2015-12-23 02:46:24

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pages not capable of acting as a repository for common resource

That's because what you asked is covered in that link.

Plus I've added an example above.

to make it clearer:

<span><a href="http://othersite.com" target="_blank">Other Site</a></span>

It's just as easy to change/add social media profiles using phplugins as it is navigation.
Export and upload a page. Look at the source code and copy the social profiles section.
Modify as needed.
Use the proper hook in phplugins to replace the old social sharing with the new one. Matt has already provided the hook of that: http://ce4.theturninggate.net/docs/doku … cial_media


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#8 2015-12-23 07:42:34

dvdfan001
Member
Registered: 2014-04-27
Posts: 158

Re: Pages not capable of acting as a repository for common resource

I have successfully changed the links of existing social media profiles.
Hook respectively function ttg_social_media ......... has been the key ;-)

One topic I did not solve, sorry for a perhaps stupid question from your point of view (I'm not quite familiar with html and css stuff)
For example: for youtube I have to use: i class="fa fa-youtube"
If I want to link to another "Service": How to go on in case that I want to use a Logo for which such an expression does not exist?

Offline

#9 2015-12-23 08:05:43

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pages not capable of acting as a repository for common resource

that's the wrong syntax for font awesome
To insert a font-awesome icon, use this syntax:

<i class="fa fa-youtube"></i>

If I want to link to another "Service": How to go on in case that I want to use a Logo for which such an expression does not exist?

If Font Awesome doesn't have the logo for what you want, then it's going to get a little complicated.
If you can find that logo with another web-font service you'll most likely need to add a link to their service using the ttg_head_end hook (after your custom css) and then use their syntax to insert the icon where needed, just like you do with Font Awesome.

If there are no web icon services with the logo, then you're just going to have to find an image, size it appropriately, and add it with html.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#10 2015-12-23 19:33:00

dvdfan001
Member
Registered: 2014-04-27
Posts: 158

Re: Pages not capable of acting as a repository for common resource

Thanks Rod

I know that this is not a html / css support site - therefore my last question in this context.

Social media profile updates are now in place.
But I recognized that the position of this block has changed.
Please see my screenshot:
changed%20position.jpg

Seems like a reposition of the complete social media block or the ul block is necessary.
Do you have a tip for me?

Last edited by dvdfan001 (2015-12-23 19:33:23)

Offline

#11 2015-12-23 23:05:42

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pages not capable of acting as a repository for common resource

Looks like a CSS class could be missing from the HTML markup, one that contains a rule for margin-left perhaps?
Hard to tell without seeing the page though


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#12 2015-12-24 00:54:01

dvdfan001
Member
Registered: 2014-04-27
Posts: 158

Re: Pages not capable of acting as a repository for common resource

After deletion of:

<div class="mantle clearfix">
<div class="core clear fix">

everything is fine ;-)

Offline

#13 2015-12-24 01:06:21

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Pages not capable of acting as a repository for common resource

I believe you only need to grab the section that starts with:

<div class="social-media-profiles social-media clearfix">

and ends with:

</div> <!-- #social-media-profiles -->

Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#14 2015-12-24 01:28:50

dvdfan001
Member
Registered: 2014-04-27
Posts: 158

Re: Pages not capable of acting as a repository for common resource

Yes, that is what I have been done, works fine.

Offline

Board footer

Powered by FluxBB