This forum is for assistance with theme development.

What does '$foo->bar' mean?

Hi There -

Am trying to grok Drupal right now, and I just cannot proceed any further without understanding this. I see a lot of this: $foo->bar , where foo and bar are strings.

I've searched the PHP manual, and it won't return anything for this type of structure, or I'm not good at searching.

I know about the array key=>value pair thing, but I haven't been able to figure this one out.

Can anyone help me by either telling me what it's called so I can search for it in the PHP manual or giving me a link to the page in the manual that explains it??

Theming Primary Links

Hey All,

I'm having some problems with my theme.

My primary links are setup like this: http://cordoba.sohosted.com/drupal_images/primary_links.gif
This will display like this : http://cordoba.sohosted.com/drupal_images/primary_links_layout_1.gif . So far no problems. :-)

But the second level of the primary links will display like this : http://cordoba.sohosted.com/drupal_images/primary_links_layout_2.gif but should be displaying like this (Photoshopped) image: http://cordoba.sohosted.com/drupal_images/primary_links_layout_3.gif

As you can see the second level of the primary links are taking the same formatting of the first level of the primary links.

How can I make this work ?

This is the code for the primary links in the template.php :

function mytheme_primary($items = array()) {
$url = 'http';
if ($_SERVER['HTTPS']=='on')
$url .= 's';
$url .= '://';
if ($_SERVER['SERVER_PORT']!='80')
$url .= $_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT'].base_path();
else
$url .= $_SERVER['HTTP_HOST'].base_path();
if ($_SERVER['QUERY_STRING']>' ')
$url .= '?'.$_SERVER['QUERY_STRING'];

$output = '

do not need the Readmore option

I want the node can be show all content in the taxonomy, do not want to see the "Readmore" text below the node.
Can I do that?

Thanks

How to disappear the all Author information at taxonomy?

I found a modules which can disappear the author information, date post... of all nodes. But those information still appear in the taxonomy. How I can dissappear it? Thanks

Please help! Viewing all available fieldnames in $node

Hi all,

Awhile back I did a tiny bit of theming research in drupal.
I struggled with it until I stumbled upon a snippet of php which would display a 'dump' of the structure of each node as it got called by node_load. I was using this as a frame of reference as I themed each bit.

I'm picking it back up and can't for the life of me figure out how I was doing this.

I remember it was a one line bit, something ridiculously simple I just can't recall the command and googling for anything dealing with node in the context of drupal is useless.

Select list: I need list entries with commas

I added a customized country select list to my profile page.
Countries are mostly written like 'Germany' or 'United Kingdom', but there are some, like 'Brazil, Federative Republic of', so it can be found under 'B'.

I have entered all countries into the text field, each on a single row. Drupal splits this data on every row AND on every comma.

I want

Burundi, Republic of
Cambodia, Kingdom of
Cameroon, United Republic of

but I get

Burundi
Republic of
Cambodia
Kingdom of
Cameroon
United Republic of

How can I change this behaviour? Yes, I know, but using some other symbols instead of a comma is the last option.

Thanks

Pages

Subscribe with RSS Subscribe to RSS - Theme development