rasmus-carlsen
Forum Replies Created
-
Forum: Themes and Templates
In reply to: template for all post in a specifik categoryhere is a plugin that makes it possible to use post-templates just like page-templates 😉
http://www.nathanrice.net/plugins/single-post-template/
ras
Forum: Themes and Templates
In reply to: template for all post in a specifik categoryhehe – already read it. But as I understand it (and I have tested it) it wont affect the way the single post is being viewed …
I do have a category template for that category “wiki”. What I need is a template for the single-post.
ras
Forum: Fixing WordPress
In reply to: managing pages and posts backend (in folders)yeah – I use different pagetemplates and looking at something like 50 pages (in 2 or 3 different templates). And yes – that function at post is what I need for pages 😉
ras
Forum: Fixing WordPress
In reply to: managing pages and posts backend (in folders)The post is ok – dont need much organization at my post and the Filter that shows post in a category fits my need.
The problem is the pages. Lets say I have 50 og 100 pages … Some of them is something like a “guide” – others are “reviews” and some pages something else.
It would be nice to have a filter that could show only pages using a specifik template or is child of a specific page.
ras
Forum: Fixing WordPress
In reply to: managing pages and posts backend (in folders)I know and it works just fine when you need to find a page. But thats not what I need ;-(
The pages is stored in a database and has information like template – I should be possible to arrange those pages somehow.
ras
Forum: Themes and Templates
In reply to: dynamic highligt of page_templatethanks!
ras
Forum: Fixing WordPress
In reply to: styling the editorwill it fit the width of the “content”? No fun having an editor where everything looks nice, but when u subit it … it goes nuts ;-(
anyway. Thanks for pointing me at the right setting and sorry for spamming the forum with ” How do I make the text bold in word” ;-o
RAS
Forum: Fixing WordPress
In reply to: styling the editorahhh … When I drag the edit-area it works. Sorry for my sleepy eyes. (doh)
ras
Forum: Fixing WordPress
In reply to: styling the editorhehe – love if it worked, but it does’nt. Changing the numer of lines to 500 gives my nothing – stille got a scroll-bar …
ras
Forum: Themes and Templates
In reply to: dynamic highligt of page_templatedid it! 😉
<li <?php if (is_page_template('page_blog_index.php')) { echo " id=\"current\""; } elseif (is_page_template('page_blog.php')) { echo " id=\"current\""; } ?>> <a href="http://www.rygestarter.dk/blog-siden/">Blog</a></li>Now the top-menu is highligtet if the rigth template is beeing used.
Prpperbly not the smartest and best way, but it works. What do you think?
ras
Forum: Themes and Templates
In reply to: dynamic highligt of page_templateand yeah; just like you did 😉
ras
Forum: Themes and Templates
In reply to: dynamic highligt of page_templateand that second guide “test” has the Guides as parent … test is a sub-page of Guides
Forum: Themes and Templates
In reply to: dynamic highligt of page_templatehehe – sorry for my vauge explanation.
properbly I make it way to difficult 😉
anyway: take a look:
Hit the Guides and that menu-item will be highlighted.
the code:
<li<?php if (is_page('guides')) { echo " id=\"current\""; }?>> <a href="http://www.rygestarter.dk/guides/ ">Guides</a></li>Since I only have 3 (maybe 4 og 5 later) I dont wanna use the “list_page”.
then hit the second guide – and the top-item Guides is no longer highligted.
(same thing about the blogs and the cigi-wiki later on)
Does it make sense?
ras
Forum: Themes and Templates
In reply to: dynamic highligt of page_templatethanks it did – nad it works and I will use it somewhere 😉 however, as I understand I cant make the
<?php wp_list_pages(‘depth=1&title_li=’); ?>
to show for example the resume … og to get a picture by each page seems rather difficult.
And I like my page_list at the content-area and there for I need specifik pagetemplates for each main-menu-item.
Anyway – the page_template is working but it cant (well – I cant) make it work like the post where you cand add more than one parameter …
ras
Forum: Themes and Templates
In reply to: dynamic highligt of page_templatealmost 😉
I dont use the sub-nav but make a manually list for the guides. (I dont have that many)
So – i got af main-menu like
// guides // shop // another item //
the 3 items are dynamicly highighet by the above (and work just fine).
Then I have 3 pages;
– guide for typing
– guide for printing
– guide for some other stuffWhat I need is make sure that if you navigate your way …
Home –> guides –> guide for typing
The menu item “guide” would still be highlighted (or if you just land on the page after a google-search).
Looking at the “Testing for subpage” at this very nice guide: http://codex.wordpress.org/Conditional_Tags
Just trying to do something with: is_page_template(‘about.php’)
Like …
<li (is_page_template(‘page_guides.php’,’page_guides_index’))
{ echo ” id=\”current\””; }?>>
GuidesIs there a better way? By checking the URL?
thanks
rasmus