This forum is for assistance with theme development.

Create a theme for flexinode type

Hello,

I create the different templates for flexinode type as a handbook :
- node-flexinode-1.tpl.php
- node-flexinode-2.tpl.php

wiith the differents fields

...

    <div class="title"><?php serialize $node->flexinode_7 ?></div>
    <div class="link"><?php serialize $node->flexinode_8 ?></div>
...

And this files are into my theme/gabarits.

I don't understand because the specifics pages ignore this templates.

Smarty Issues

Hi,
how do see if smarty was installed correctly? I did everything mentioned in the install-guide. But everytime I load a smarty-based theme, I just get a white page (no HTML-Output). I tried 2 different smarty-themes (4.7 versions). So I guess there is a problem with my smarty?

Paragraph formatting was there yesterday, gone today!

I'm lost on where and how $node->body and $node->teaser incoporate the formatting of lines & paragraphs. Somewhere in the last 24 hrs, my module has gone from normal line & paragraph formatting to absolutely none. All lines are merged into one block of text.
So far I can't figure it out where/how I've broken it, so if anyone has suggestions or pointers I'd be most grateful.

Problem with Primay links in Smarty template

I'm using the Smarty Theme Engine, and I have this code to show the primary links:

{if count($primary_links)}
	<ul id="primary">
		{foreach from=$primary_links item=link}
			<li><span class="lw1"><span class="lw2">{$link}</span></span></li>
		{/foreach}
	</ul>
{/if}

I thought that it would print a list item and those spans for each link. However, the output is:

Alternating image location

I am using phptemplate for my theme and flexinode for my content. I have a theme file node-flexinode-1.tpl.php which is being used to display my nodes. That all works fine.

My nodes consist of a body of text and an image. I have pages that are using php to select and display my flexinode nodes as a list of teasers. In my css classes I am floating the image so that it appears next to the body of text.

What I would like to be able to do is alternate the side that the images is floated to, so all the odd teasers are float: left and the even teasers are float: right.

Primary and Secondary Links

i am using 4.6 and would like to do 2 things
1) control the primary links based on user and whther th user is authenticated or not. ?Basically show a primary link for "My Blog" if the user has the rights to create a blog and "logoff" if the user is authenticated.

2) Control the secondary links based on primary link.

There seem to be a few posts about how great this is with 4.7 but it not being released i need to use 4.6.

can anyone point me in the right direction?

One other thing, i have used the adc theme which doesn't have a page.tpl.php

Pages

Subscribe with RSS Subscribe to RSS - Theme development