|
| |||||||
| Design Discuss ways to change the layout and CSS to fit your site. |
![]() |
| | topic widgets |
| | #1 |
| Join Date: Apr 2006 Posts: 2 | thank. |
| |
| | #2 |
| Supporter Join Date: Feb 2006 Location: As far from you as humanly possible! Posts: 2,860 | {if $category.ID gt 0} code to show name here {/if} |
| |
| | #3 |
| Join Date: Apr 2006 Posts: 2 | put in wich file? |
| |
| | #4 |
| Supporter Join Date: Dec 2005 Posts: 1,243 | Its the h1 tagged code in the header.tpl file |
| |
| | #5 |
| Supporter Join Date: Mar 2006 Location: East Coast Posts: 77 | I played around with this code but can't get desired results. I want this element : <h1 id="title">{$in_page_title.....}</h1> to remain on all pages except index and to be completely removed from the index page. If I understand correctly something should be placed inside {if...} tag to identify index page. Something like: {if (this is not index page)}<h1 id="title">{$in_page_title.....}</h1>{/if} How to write red statement in the smarty code? Thanks! Last edited by David; 08-18-2009 at 11:12 PM. |
| |
| | #6 |
| Supporter Join Date: Dec 2005 Posts: 484 | In header.tpl, code will look something like this if using v304, or similar if another version: {if $category.ID gt 0} <h1 id="title">{$in_page_title|escape|trim}</h1> {/if} |
| |
| | #7 |
| Supporter Join Date: Mar 2006 Location: East Coast Posts: 77 | This way it will also remove title from "Submit Link", "Latest Links", "Top Hits" and "Search Result" pages... Is there a way to keep the title on those pages and remove it only from index? Last edited by David; 08-18-2009 at 11:12 PM. |
| |
| | #8 |
| Supporter Join Date: Dec 2005 Posts: 484 | ahhh now I remember why that way was a no no. Unfortunately I know of no way to isolate using the code above without disenfranchising the submit, latest and top hits pages. Maybe someone else can offer a new thought. You could perhaps try a sneek attack by going via the database: 1) Access your phpld database using perhaps phpmyadmin select/browse PLD_CONFIG edit SITE_NAME delete 'your site name' This will also delete it from the section asking you to specify it in admin. And thus delete it from the area you wish on the index page. However this will also remove the 'site title' from the breadcrumb in the top bar. (site title>category) 2) You can patch this side effect by going into topbar.tpl and literally replacing {$cat.TITLE|escape} with 'DIRECTORY NAME'. Code in topbar.tpl with {$cat.TITLE|escape)replaced by Directory Name: Code: Content visible to registered users only. ![]() . Last edited by David; 08-18-2009 at 11:12 PM. |
| |
| | #9 |
| Supporter Join Date: Dec 2005 Posts: 484 | Ok another way without tampering with database: 1. In header.tpl template do like was first suggested: {if $category.ID gt 0} <h1 id="title">{$in_page_title|escape|trim}</h1> {/if} 2. Then place this right above the above code: {if $list or $search} for v2 to v303 use: {if $p or $q} <h1 id="title">{$in_page_title|escape|trim}</h1> {/if} This will reinstate "Latest Links", "Top Hits" and "Search Result" 3. In submit.tpl place above {include file="top_bar.tpl"} <h1 id="title">{$in_page_title|escape|trim}</h1> Submit a new link to the directory This will reinstate the "Submit Link" page title 4. To avoid description duplication, delete 'Submit a new link to the directory' at top where you find: {capture assign="description"}{l} Submit a new link to the directory {/l}{/capture} How can such a simple request try Pharaoh's patience so. ![]() laters. |
| |
| | #10 |
| Supporter Join Date: Oct 2005 Posts: 540 | good work. thanks. __________________ many thanks. thompson. |
| |
| | #11 |
| Supporter Join Date: Mar 2006 Location: East Coast Posts: 77 | Thanks, Net This should do it. I would prefer not to change any sourse code outside template files. I am working on a new template for 3.0.4. so you can't ask people to edit database just to install the skin |
| |
| | #12 |
| Supporter Join Date: Feb 2006 Location: As far from you as humanly possible! Posts: 2,860 | Code: Content visible to registered users only. Rob |
| |