We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

show only in the homepage | Forum

Topic location: Forum home » Development » Themes
Will
Will Dec 19 '13
Hello, I have a problem. I´m trying to edit a theme. I want to show a header image only in the homepage. I do this:

++++++++++++++++++++


{if $heading}

<h1 class="ow_stdmargin {$heading_icon_class}">{$heading}</h1>

 {else}   

<div class="ow_header">        

{if isset($imageControlValues.headerImage.src)}            

<img class="ow_header_img" src="{$imageControlValues.headerImage.src}" />       

{else}                        

<div class="ow_header_pic">

<img class="ow_header_img" src="{$themeImagesUrl}header.jpg" /></div>      

 {/if}        

</div>              

{/if}


++++++++++++++++++++


It is working because the homepage doesn´t have a visible header h1... But the problem is that the "group view" page (example: yoursite.com/groups/1) doesn´t have heading and it is showing the header image.

In all pages the code is working but in the "group view" doesn´t work.


Anyone knows what is the best form to do this? 

Thank you.

The Forum post is edited by Will Dec 19 '13
Alia Team
Alia Dec 19 '13
Will, check my reply from here http://www.oxwall.org/forum/topic/15053

I think what I explained about general and dndindex.html files can help you to achieve desired result in an easier way.
Will
Will Dec 20 '13
Hello Aliia, thank you, I will try the proposal solution in your reply.


Thank you.

Will
Will Dec 20 '13
Hello, the solution of Aliia is working for me, thank you.


But now I have another little problem, 


I want to show the header image to the guests too, at this moment the header is visible only for the registered users.


Anyone knows how can I do this?


Thank you


Alia Team
Alia Dec 24 '13
That is strange Will, seems like you did some other custom modifications which make the system to behave this way.