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.
You are not logged in.
Pages: 1
Hello
I would prevent these page: http://martine-cheval.be/stage-derniers-dessins/
from appearing in the navigation bar. Whem I created the site these page seemed a good idea, but now it has nearby the same fuction that the Chronologie page, for there is there the last semestre.
This is a stage page and I don't remember exactly how I set it up.
I thougnt that i could prevent these page from appearing in the navigation by commenting a line like this:
<!--<li><a href="http://martine-cheval.be/stage-derniers-dessins">Oeuvres récentes</a></li>-->
I did it in about.php and index.php but without, or too mutch, result.
I remembered that to add a page, without having to republish entirely pages, I added a line like these in a phplugin file but couldn't find where (see here: http://community.theturninggate.net/vie … hp?id=3988 )
Is it an "easy" way to do what i am intended?
Thanks
Greatings
Frédy
Last edited by fwillette (2019-01-10 22:16:26)
http://www.martine-cheval.be/
Lightroom CC2015
Offline
are you using phplugins to manage your navigation?
If so, just edit that file and remove the code you mentioned above.
on your server, your phplugins file is in the phplugins/ folder in the root of the site.
You should probably have a copy of it on your computer someplace, if not, just download it to your computer, open it in a plain text editor, remove the code, save it, and reupload it to the server.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Very very very strange; I don't understand
Editing the phplugins.php file is well the way I supposed was the good one, but....
Neither before asking help, nor now, am i able to find my code back.
I remember having deleted a line to edit my code to implement drop down navigation, but when after having downloaded the phplugins.php file to my computer I open it with Notepas++ my code don't appear. The text is almost green like it had never been edited?????????????
Repeted the manipulation several times with allways the same result. The code is however present in the page code:
<ul id="nav">
<li><a href="http://martine-cheval.be/index.php">Home</a></li>
<li><a href="http://martine-cheval.be/stage-derniers-dessins">Oeuvres récentes</a></li>
<li><a href="http://martine-cheval.be/galleries.php">Galeries</a></li>
<li><a href="http://martine-cheval.be/about.php">Mon parcours</a></li>
<li><a href="http://martine-cheval.be/contact.php">Contact</a></li>
<li><a href="http://martine-cheval.be/search/"><i style="color:red;"class="fa fa-search"></i> Recherche de dessins</a></li>
<li><a href="http://martine-cheval.be/info.php"><i style="color:green;"class="fa fa-info-circle"></i> Infos utiles</a></li>
</ul><!-- #nav -->
Rod do you have a magical idea please, I'm becoming to feel stupid :-(
http://www.martine-cheval.be/
Lightroom CC2015
Offline
but when after having downloaded the phplugins.php file to my computer I open it with Notepas++ my code don't appear. The text is almost green like it had never been edited?????????????
then you might not be using phplugins after all. (You're not using drop-down navigation so this makes me think that you may not even be using phplugins .)
In Lightroom, in the Web Module, open the CE4 Pages web collection for your site. In Site Info, scroll down to the phplugins area and see if you have phplugins enabled and if you have anything set in the Server Path to PHPLugins field. If not, you're not using phplugins. If there is a path there, is it the right one?
Here's the document on enabling phplugins if you need it: http://ce4.theturninggate.net/docs/doku … _phplugins
If you're not using phplugins you have two choices, both involve exporting and uploading some things again.(or, if you dare, editing the index files for each of your pages, autoindexes, and galleries to remove the html for that one link--not the best route)
1) Since you're using Publisher, this should be relatively painless. In each of your gallery and autoindex templates (In Lightroom Web Module), remove the navigation item. Then export and re-upload the templates as you originally did.
In Pages, do the same thing. Remove the link, export and upload.
In both cases you can probably get away with just uploading the index.php and mobile.php (if there are any) files.
For any stand alone pages or galleries you might have, you'll need to make the navigation changes, then export and upload again.
OR
2) Enable phplugins in Pages, your gallery and autoindex templates, and any stand alone pages or galleries. Re-export and upload.
Edit the phplugins. php file, uncomment the drop-down navigation section and edit the code to reflect the navigation you want. Upload the file to ttg-be/phplugins/
(side note: all of this is sooooo much easier in Backlight. So if you're thinking of upgrading, this would be a grand excuse for it )
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Hi Rod
Phplugings is enabled in every plugin (Iwas 100% sure of that) and path is /home/martinec/www/phplugins whitch seems to be correct
I am 99.99% sure to have authored a file; didn't i to have done it to organise the pages in the navigation ?
I feel getting completely lost
Edit:
Also did I somewhere copy your code to highlight the selected page, but where?
I found an authored phpligins.php file in a kind of backup, but don't seem to be the good one, not all pages presents.
Last edited by fwillette (2019-01-09 21:51:20)
http://www.martine-cheval.be/
Lightroom CC2015
Offline
The code to highlight the page item in the menu is custom css. You’ve got php code in there as well. And while it doesn’t appear to be messing things up, it should be taken out.
this is the only code that should be in the custom.css file:
.selected {
background-color: #2b2b2b !important;
color: white !important;
}
The path to phplugins is correct.
If, as you say, all the text in the User area of the phplugins file is green, then it’s not being applied. Have you removed the comment code from before and after your navigation code?
If you want, email your phplugins file to me and I’ll take a look.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Hello Rod
I just sent you the phplugings file.
The content of the custom.css file is:
function ttg_head_end( $style, $path ) {
echo '
<link rel="stylesheet" href="/phplugins/css/custom.css" />
';
}
.selected {
background-color: #2b2b2b !important;
color: white !important;
} // END
I can't remember having removed or even modied anything in the structure of the site for it was working perfecly for my use, whitch was onfy ceate new albums or modify existing one.
I wonder where is the code of the navigation that appears on the page and is present in the code of the page?
http://www.martine-cheval.be/
Lightroom CC2015
Offline
the custom css file is just for styling not structure.
You've got more in there than should be. Delete everything other than what I posted above. The rest is commented text and php (funtion ttg_head_end...)
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
The custum.css file has been cleaned.
The phplugings.php file you sent me works fine.
I wonder why the pages home and galleries you didn't include in the scrit appear however in the navigation bar.
I dont't remember why after all I didn't implement drop down menu, maybe the album set system did the job.
Thanks a lot.
Best Geatings
Frédy
http://www.martine-cheval.be/
Lightroom CC2015
Offline
The Home and Galleries links are there. Near the top of that function is the home link then the Galleries link along with all the code that creates the drop down.
In CE4 the drop downs are only possible using phplugins. Your phplugins file previously had all that navigation code commented out.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
O.K.
Thanks again Rod
F
rédy
http://www.martine-cheval.be/
Lightroom CC2015
Offline
Pages: 1