By jsimonis on
I can't seem to locate where the "template" for an event's description is at.
The problem I'm running into is...
I've removed the time zone using the display: none code in the event.css
Now the body runs right under the start and end time.
Start: 01/07/2006 - 1:00am
End: 01/07/2006 - 12:59pm
Body:
text of the event here
I'd like to be able to move down the word "Body" so that it's a little further down. Also, it would be nice to change it so that it says "Event description" instead of "Body."
I've looked around and can't seem to find this. I'm sure I'm just missing it somehow.
Thanks!
Comments
Theres a file called
Theres a file called event.theme where you can customize every output the Event module does.
That...
That's exactly what I've done several edits to, but none of them seem to have changed anything.
I remembered where I could change the word "Body," but I can't seem to find where in event.theme I can change the formatting so that everything would be moved down a line.
Which one of the items in the theme is specifically for the full event details page? It seems that every one of them says either "Format a calendar view" or "Format an event node for display in an expanded calendar, like a calendar page."
Which one do I edit so that it will change the page you get when you click on an event name (either in the "upcoming events" block or calendar)?
Thanks.
--
Jenni S.
Any luck removing "Body:" from an Event?
I too would like to change this, this seems to be generated by event.module. This may seem
trivial and understandable for programmer types, but it is really out of place Start and End
are OK but "Body:"? Does not make sense to visitors. I have seen a couple other posts
regarding this, and have look at the template files and the css files with no luck. Can some1
please help with this one? Things like "Title" and "Body" Don't need labels.
more searching I found:
http://drupal.org/node/21409
This did the trick..
.flexinode-textarea-1 label {
display: none;
}
Cheers
Some answers + 1 question
Hi,
Some answers first:
1.-
It is in modules/event/event.theme
2.-
It is safer (crossbrowser + design to-the-pixel) to use
The stylesheet for the event module can be found at modules/event/event.css (what I did was delete the whole content and rewrite it for myself, but you could overwrite the rules in any other .css file)
3.-
Whether you want it slightly lower, in line with the body or make it dissapear, you have to refer to:
.flexinode-textarea-# .form-item span.label-body (where '#' is the number of the event flexinode)
a.- move it down -> something like margin-top: 1em;
b.- inline -> display: inline;
c.- dissapear -> as stated above for the time zone label
4.-
That's a good one! As far as I got to know it comes out of function phptemplate_form_element in the general template.php file, in case you have it. But, where does the $title variable in this function comes from? where is it called from? No idea. I need some more documentation on this module, too.
5.- (to Jenni)
That is in the modules/event/event.theme, too. There's one function for each type of view. In my case (I only want the listed view) I have removed the 'view options menu' (http://drupal.org/node/46957#comment-115794) and checked out all view functions but the theme_event_node_list function.
6.- (to Jenni)
I believe that comes from the node.tpl.php file itself (or a flexinode template you may have defined). I can't have control on the event extra parameters (such as the location box + items) though. :-(
-----------------------
Now my question. Event.module experts: Let's document and show light on this great module! ;-)
Whether it is directly or indirectly related to the events.module there should be a way to have control (template) how and where place the location (address) items within the node. How can I place the 'location box' over the body of the node?
The location box (aka 'address') is created by the function theme_location at modules/location/location.inc (shouldn't it be called 'location.theme'?). But I can't find where is it called from. If you (or I) find it, I'll be able to alter the order of the functions call, so that it is parsed before the node content ('body') in the 'x' (whatever) template file.
Thanx for any help and have a good day,
hip
Further on theming&understanding event + location modules
(Some more strugling with this modules)
The configuration of the location.module within the Drupal admin pages (http://mysite/admin/settings/location) offers a:
Toggle location display: enable / disable option, and has a follow up:
So, I guess you can override the default (?) theme configuration to the location.module (that I haven't found anywhere yet :-( )
I'm not in the way of testing it at the moment!!!, so I won't go any further this way. As far as I've arrived the following is some guessing. Sorry.
Anyway, I think it could be themed then creating a custom theme for the required flexinode (I make use of location.module within the event.module). You can give a look at http://drupal.org/node/31646 , http://drupal.org/node/45475 , and many other nodes. But always refering to this important page (the only documentation I've found about the loacation.module variables):
Accessing location variables from 'on-page' php
http://drupal.org/node/35388
All this documentation has let me develope a custom events block to my needs. Hopefully it'll let you, too.
I hope it helps.
Have a good day,
hip
There was an issue...
There is an issue causing the body field to always be displayed and required. In the configuration for the module you are supposed to be able to change the label for that field (or omit it to prevent it being included on the form at all) but there is an entry in the contrib/basicevent.module that sets the name of the body field to Body and forces it to be a required form element.
This can be fixed as I described on the issue report: http://drupal.org/node/253934
Follow me on twitter.