PDA

View Full Version : Removing index page links?


MCB
7th of January 2007 (Sun), 11:41
How can I remove the links to the RSS feed, latest news, etc from my index page?

I don't use the RSS feed, for example, and clicking it just generates an error page with lots of php source code that includes paths to the location of some missing files or something... seems like a bad thing. So i would like to remove those unused links, just in case.

Thanks.

UweB
7th of January 2007 (Sun), 12:15
In the admin page -> structure -> link and there you can add or delete links...
The RSS feed is only visible with a RSS capable browser like firefox (my Mozilla doesn't work either) or with a RSS feed collector program... only then will you be able to see a nice layouted page alramin subscribers about changes in your gallerie...

MCB
7th of January 2007 (Sun), 13:27
Oh, yeah. Links... why didn't I notice that?? :)

Which links should that remove? The links that are at the top-left of each page? I'm more interested in getting rid of the ones arranged vertically in the upper-right-hand corner of the index page.

Somehow removing those links on the link admin page didn't work. I deleted all of them except the gallery map. When I reloaded my gallery, it was the same. I quit firefox, started it again, then loaded my gallery. No change. Oh, except now when I click on the RSS feed link, it works. :)

But I think there is something quite wrong with my installation. After upgrading to 2.02 I now have a bold message on the left-hand side of the gallery index page, just above the login field, saying "Welcome to Exhibit Engine 1.5 beta 4" but then below that it says "gallery pages created by Exhibit Engine 2.02"

I'm 99% sure that old version number wasn't displayed when I had 2.0 installed.

Things seem to be more-or-less working correctly, so I am reluctant to do a fresh install. But maybe I have no choice... :(

Thanks again for the help.

[edit: I went to the admin page structure->structure and noticed that the "contains links" field now only has the gallery map link. That is the only one I did not delete. So the group Index now contains my 7 exhibitions and a single link. But my EE index page still shows the all of the original, default links.]

timned88
10th of January 2007 (Wed), 09:38
But I think there is something quite wrong with my installation. After upgrading to 2.02 I now have a bold message on the left-hand side of the gallery index page, just above the login field, saying "Welcome to Exhibit Engine 1.5 beta 4" but then below that it says "gallery pages created by Exhibit Engine 2.02"




that's a news item. you can change it under the news setting. don't worry about it, you did nothing wrong.

aperry
4th of March 2007 (Sun), 12:50
I'm noticing the same behavior. When I remove links from the Index group in the "structure" menu, then are not being removed from the site.

Even when I delete them entirely from the "links" menu (in the Structure category), they are not removed from the site.

Anyone know how to do this? I just want to remove "gear notes" and "latest news".

Thanks,
Aaron

jeronimo
4th of March 2007 (Sun), 15:52
Check under templates/pages/ee2_default(_udm)/index/default_XHTML_content.php

Then the file in contains the links.
<p class="ee_css_paragraph">
<?php print $newspage_link_html; ?><br class="clear" />
<?php print $rss2_link_html; ?><br class="clear" />
<?php print $site_map_link_html; ?><br class="clear" />
<?php print $commentspage_link_html; ?><br class="clear" />
<?php print $guestbook_link_html; ?><br class="clear" />
<?php print $gear_link_html; ?><br class="clear" /><br class="clear" />
</p>

There you can (permantly) delete them

aperry
5th of March 2007 (Mon), 09:01
Commented them out and it worked great. Thanks Jeronimo!

jeronimo
5th of March 2007 (Mon), 10:33
Your welcome

wkitty42
10th of March 2007 (Sat), 20:58
yes, there are two "types" of "links"... some that are accessible via the admin section and others that are hardcoded in the templates... those on the default homepage stuff are hardcoded and one must edit the template files to remove them... the bad thing to this is that it'll have to be done all over again after a bugfix replaces those edited files with bugfixed ones :(

unfortunately, this is a problem when a coder is working on switching formats from a hardcoded one to a configurable one... not that that is exactly what is happening here but it has the same effect...

vector18
22nd of October 2008 (Wed), 04:37
What if I want to add a index page link, for example to Jeronimo's contact mail form? how do I do that

jeronimo
22nd of October 2008 (Wed), 08:32
The best way to make some links is to use a custom header. (but then the link is allways there).

For the other ways I have to go in to the code. I will try this later on when I have some more time.

jimmiec
7th of March 2010 (Sun), 18:35
I tried to comment out all but site_map_link_html in
templates/pages/ee2_default/index/default_XHTML_content.php and the links still display.

What is the proper code to comment out these lines?

Check under templates/pages/ee2_default(_udm)/index/default_XHTML_content.php

Then the file in contains the links.
<p class="ee_css_paragraph">
<?php print $newspage_link_html; ?><br class="clear" />
<?php print $rss2_link_html; ?><br class="clear" />
<?php print $site_map_link_html; ?><br class="clear" />
<?php print $commentspage_link_html; ?><br class="clear" />
<?php print $guestbook_link_html; ?><br class="clear" />
<?php print $gear_link_html; ?><br class="clear" /><br class="clear" />
</p>

There you can (permantly) delete them

wkitty42
9th of March 2010 (Tue), 12:35
I tried to comment out all but site_map_link_html in
templates/pages/ee2_default/index/default_XHTML_content.php and the links still display.

What is the proper code to comment out these lines?
i believe that C comment style works but there should be other commented section in at least one other file that will give you an example... possibly the header of the file you are working in?? ;)

jimmiec
9th of March 2010 (Tue), 22:09
Yes I have tried many variation of C Commenting, yet it does not seem to work.
For example /* */ and // // as seen below:
<p class="ee_css_paragraph">
/* <?php print $newspage_link_html; ?><br class="clear" />
<?php print $rss2_link_html; ?><br class="clear" /> */
<?php print $site_map_link_html; ?><br class="clear" />
/* <?php print $commentspage_link_html; ?><br class="clear" />
<?php print $guestbook_link_html; ?><br class="clear" />
<?php print $gear_link_html; ?><br class="clear" /><br class="clear" /> */
</p>


i believe that C comment style works but there should be other commented section in at least one other file that will give you an example... possibly the header of the file you are working in?? ;)

Overshot
10th of March 2010 (Wed), 07:01
The code is a mixture of HTML and PHP. You would have to comment the individual bits of code appropriately.

Your simplest option is to delete the lines for the links you want to remove. Probably a good idea to comment your changes and keep a copy of the original template file.

Try as below to retain only the site map link.
<p class="ee_css_paragraph">
<!-- news page and rss links removed from here -->
<?php print $site_map_link_html; ?><br class="clear" />
<!-- comments, guestbook and gear links removed from here -->
</p>

jimmiec
10th of March 2010 (Wed), 11:36
Thank you Overshot!. I will be making the edit to night when I get in from work. I much appreciate the help.
Jimmie
The code is a mixture of HTML and PHP. You would have to comment the individual bits of code appropriately.

Your simplest option is to delete the lines for the links you want to remove. Probably a good idea to comment your changes and keep a copy of the original template file.

Try as below to retain only the site map link.
<p class="ee_css_paragraph">
<!-- news page and rss links removed from here -->
<?php print $site_map_link_html; ?><br class="clear" />
<!-- comments, guestbook and gear links removed from here -->
</p>

jimmiec
10th of March 2010 (Wed), 13:15
Perfect! Edit made and working.
Thank you again!

The code is a mixture of HTML and PHP. You would have to comment the individual bits of code appropriately.

Your simplest option is to delete the lines for the links you want to remove. Probably a good idea to comment your changes and keep a copy of the original template file.

Try as below to retain only the site map link.
<p class="ee_css_paragraph">
<!-- news page and rss links removed from here -->
<?php print $site_map_link_html; ?><br class="clear" />
<!-- comments, guestbook and gear links removed from here -->
</p>