I'm new with Drupal and OpenPublish. I want to change the detail page for a node (e.g. remove the Login/Comment message for an article or add the original URL for a feed item), but I don't know how to do this. I did the following:
* created a new view (with Block and Page), added the fields and the live preview gives the output that I want)
* put the new view in the context that needs it
However, it doesn't return the right output in the detailpage.
I've been at this for a few days now but I cannot find a way to do this. Probably I don't understand how OpenPublish handles this. Can anybody point the right direction for me? Obviously I have to change something else or do I have to do this in php?
Comments
can anybody please point me to the right direction?
can anybody please point me to the right direction?
I like OpenPublish and think it has great potential, but it cost me a couple of days already and I'm not one step further.
To remove the comments from
To remove the comments from an article you need to edit the Article Content Type and turn off Comments.
To make changes to the different node detail pages you need to edit that node template file in the theme - e.g node-article.tpl.php for the article details page.
Thanks.
Solved and another question?
I created a new node detail page and modified this. Especially
is quite useful doing this.
A bit strange though, that the php has to be edited manually. For a normal editor this is pretty difficult. Modifying a custom layout is pretty standard. Isn't there a module that can do this visually?
Yes, there is an API module
Yes, there is an API module called 'Display Suite' http://drupal.org/project/ds which allows you to take over the layout of a node. The other available modules (for taking over nodes, users, comments etc) are linked from the API modules project page. Its a great module....or set of modules I should say.