Ralf

Topic: More text on the dynamic pages

I'd like to add more text to some of the dynamic pages. One idea that I head, is to add a translations-tag, that has some dynamic value somewhere. For example on the category page I would like to add

Code:
{$translations.category.additionaltext-{$current_category}}

which obviousely doesn't work like that - a variable inside a variable isn't a good idea, I guess.

It's all about content, so it would be nice if I could add some text to the translation file - in the above example I would e.g. add to the translations file under category section additionaltext-it, additionaltext-personal, etc.

I think that's not a "clean" solution anyway - even if it would work. I guess it would need some additional fields in the db to make this solution work - but that's not a quick hack, that I was searching.

Anyway, maybe someone has an idea how to solve this problem - even quick & dirty would be fine for me. Btw.: it would also be nice, if there was no error, if that translation doesn't exist.

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!

Ralf

Re: More text on the dynamic pages

no one any ideas?
Cheers, Ralf

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!

spongeproject

Re: More text on the dynamic pages

Can you provide a specific example of where you would see this text appearing? I'm struggling to understand where this would appear on the end page.

Thanks

R

Jobatronic - templates & themes for Jobberbase
blog: Jobatronic blog - email: hello@jobatronic.co.uk - twitter: @jobatronic

Ralf

Re: More text on the dynamic pages

That could be anywhere on the page. I would create a div - e.g. like the one on the start-page - that I put in there for the 6 small ads. Within that div I would like to have a translation-code that allows me to add a text concerning each category. About working in the IT industry or about what it means to be a sales person or whatever.

Maybe - if that works - I would like to add the whole div with the translations in it only when the translation to that category really exists.

I hope my explanation helps to understand. If not, just ask again ;o)
Thanks, Ralf

Last edited by Ralf (2011-06-17 12:49:00)

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!

Ralf

Re: More text on the dynamic pages

This seems to be more difficult than I thought. Anyway - any idea that helps to get there would be appreciated.

Thanks, Ralf

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!

hobo

Re: More text on the dynamic pages

Have you seen this topic?: http://www.jobberbase.com/forum/post10556.html#p10556

In the linked example you can use <div id="someid"><p>xxx</p></div>.
Same for yyy and zzz.

Ralf

Re: More text on the dynamic pages

Hi Hobo, thanks - I didn't see that topic ... hmm usually I search the forum. Sorry for that!

And thanks a lot for helping. The link is the right one - and it describes a simple way to get it. Just by asking if the current site is that category. It's not the most elegant solution but works right away.

For everyone: If you do this - watch out for renaming categories after it's live! ;o)

Soon to see on my live site. I'll let you know.
Cheers, Ralf

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!

Ralf

Re: More text on the dynamic pages

First text is live for engineers:
On http://www.jobboard-deutschland.de/jobs/ingenieurwesen/

click on "Jobs im Ingenieurwesen"

Thanks again for helping!
Cheers, Ralf

New jobboard for germany: www.jobboard-deutschland.de it's getting better every day!
Thanks to everyone -specially within this forum- for supporting!