[support] Change home page from story to page?

sander-martijn sander at sander-martijn.com
Tue Aug 21 17:55:18 UTC 2007


I'm using node.tpl.php to rewrite the content like this:
<div>
    <h2><?php print $title ?></h2>
    <div class="content"><?php print $content ?></div>
</div>

So that I don't have the header link bc i don't want the content to show 
anywhere other than the home page.  Thanks everyone for giving me 
several different options to try.  At the moment, for my needs it seems 
like the best option to get what i need would be to change node.tpl.php 
so that it links the title like normal if you're an admin.  Furthermore 
I should probably only retheme stories until i get a better handle on 
the different options.


Metzler, David wrote:
> Last I checked, node Title was a required field, and by default, 
> the node title on a home page displays with a link to that piece of 
> content. So how are you suppressing them for the two paragraphs.  Are 
> you using panels?  Are you supressing the the titles via custom tpl's 
> for specific node types (e.g. story.tpl)? Are these blocks with custom 
> text?  Have you customized node.tpl, story.tpl or another .tpl file to 
> remove titles?
>  
> As one person has suggested, adding the edit link at the theming layer 
> with tests on which "role" a user is in, is one way to add specific 
> links to editing a node on the page. Could you include more info about 
> how your paragraphs are constructed?
>
> Dave
>  
>  
>
> ------------------------------------------------------------------------
> *From:* support-bounces at drupal.org [mailto:support-bounces at drupal.org] 
> *On Behalf Of *sander-martijn
> *Sent:* Monday, August 20, 2007 4:07 PM
> *To:* support at drupal.org
> *Subject:* Re: [support] Change home page from story to page?
>
> Yes I do.  And the edit/revisions tabs appear on the other pages. 
> (that was a good question though - my first try at a template didn't 
> include tabs and i was missing all kinds of things)
>
> Sarah Adams wrote:
>> Do you have $tabs included in the home page template?
>>
>>
>> sander-martijn wrote:
>>   
>>> Well not every home page on the internet is a teaser list.  This 
>>> particualar one has a random image (thanks for your help on that btw I 
>>> got it working), two paragraphs of text that are only on that page, a 
>>> specialized search (custom module) and 3 news items.  The news items 
>>> will just be headers that link.  However the two paragraphs don't link 
>>> off anywhere, so you can't see them anywhere except the homepage.  
>>> Therefore to edit them you need to go to the content management part 
>>> of the admin and find the story and edit it.  I was just wondering if 
>>> there was an easier way to have the editors manage the home page content.
>>>
>>> Metzler, David wrote:
>>>     
>>>> Doen't quite make sense.  The home page is normally a "teaser list" of
>>>> nodes.  If you click on the node that you want to edit, whether it's the
>>>> top sticky one or another, you should be able to edit that node,
>>>> (provided you have permissions of course). 
>>>>
>>>> Not sure what you mean by "go looking for it", so am a little confused
>>>> as to whether I'm answering your question. 
>>>>
>>>> Dave
>>>>
>>>>  
>>>>
>>>> -----Original Message-----
>>>> From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
>>>> Behalf Of sander-martijn
>>>> Sent: Monday, August 20, 2007 1:32 PM
>>>> To: support at drupal.org
>>>> Subject: [support] Change home page from story to page?
>>>>
>>>> When I first set up my site, I added a story to the home page which now
>>>> appears there but isn't editable from the home page.  Can this be
>>>> changed?  I do want the home page to have other elements such as news
>>>> stories that have been promoted to the home page, so maybe this is the
>>>> only or best way to do it.  but i think the best case would be for an
>>>> editor to be able to edit the main home page content from there rather
>>>> than to have to go looking for it. 
>>>> --
>>>> [ Drupal support list | http://lists.drupal.org/ ]
>>>>   
>>>>       
>>> -- 
>>> ------------------------------------------------------------------------
>>>
>>> sander-martijn <mailto:sander at sander-martijn.com>
>>> interface developer | architect
>>> sander at sander-martijn.com <mailto:sander at sander-martijn.com>
>>> www.sander-martijn.com <http://www.sander-martijn.com>
>>>
>>> ------------------------------------------------------------------------
>>>     
>>
>>   
>
> -- 
> ------------------------------------------------------------------------
>
> sander-martijn <mailto:sander at sander-martijn.com>
> interface developer | architect
> sander at sander-martijn.com <mailto:sander at sander-martijn.com>
> www.sander-martijn.com <http://www.sander-martijn.com>
>
> ------------------------------------------------------------------------

-- 
------------------------------------------------------------------------

sander-martijn <mailto:sander at sander-martijn.com>
interface developer | architect
sander at sander-martijn.com <mailto:sander at sander-martijn.com>
www.sander-martijn.com <http://www.sander-martijn.com>

------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20070821/f2be752f/attachment.htm 


More information about the support mailing list