Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: excerpt position
You can probably fix the javascript by changing code like this:
<script type="text/javascript" src="js/jquery-1.1.3.1.min.js"></script>
to be like this:
<script type="text/javascript" src="/js/jquery-1.1.3.1.min.js"></script>
Or, best of all, like this:
<script type="text/javascript" src="<txp:site_url />js/jquery-1.1.3.1.min.js"></script>
Do this in every page (Presentation -> Pages) where you find such tags.
Code is topiary
Offline
#17 2011-01-14 22:57:36
- haimirich
- Member
- Registered: 2011-01-12
- Posts: 15
Re: excerpt position
Both solution worked jsoo!
Yeah, it would be great to have “Pagina” instead of “Page”.
I will work again to the blog tomorrow, i have another question about the excerpt (maybe a bit complicate so i have to write better english to succesfully explain myself)
Thank you a lot!
Offline
Re: excerpt position
In the “main” form, change this:
<txp:soo_page_count />
to this:
<txp:soo_page_count format="{prev} Pagina {current} di {total} {next}" />
and if that sounds right in Italian, I’ll see about adding it as a translation to soo_page_numbers (the plugin responsible for that tag, which happens to be one of mine).
Code is topiary
Offline
#19 2011-01-15 14:54:27
- haimirich
- Member
- Registered: 2011-01-12
- Posts: 15
Re: excerpt position
Ok, here’s the question:
In the home page each excerpt has a background
#left .post .postheader {background: url(images/postheader.jpg) no-repeat; height:10px;}
#left .post .postcontent {background:url(images/postbg.jpg) repeat-y; padding:10px 25px 10px 25px;}
#left .post .postbottom {background: url(images/postbottom.jpg) no-repeat; height:59px;}
Do you think is possible to have different images depending on the Section in which i wrote the article?
If article is in “Video” the excerpt would have green frame, if article is in “geek” would have blue frame and so on….
Is that possible?
Offline
Re: excerpt position
Yes. A simple way would be to add a class for the section. Like so, in the “frontpage” form:
<div class="postheader <txp:section />">
Last edited by jsoo (2011-01-20 01:28:57)
Code is topiary
Offline
#21 2011-01-15 16:17:12
- haimirich
- Member
- Registered: 2011-01-12
- Posts: 15
Re: excerpt position
I tried with
<div class=“postheader <txp:section />”>
in frontpage but nothing happened.
Don’t I have to modify the style sheet?
I tried to create a new one for “geek” section with green frame around the excerpt but i didn’t understand how to visualize in home page “geek” articles with green frame instead of red…
Maybe (for sure) i did something wrong or didn’t explain myself very well….. sorryyy!
Offline
Re: excerpt position
haimirich wrote:
Don’t I have to modify the style sheet?
Sorry, I was too terse. Yes, you then have to add the new classes (one for each section) to the stylesheet, and then declare style rules for them. Make sure you put the new style declarations after the ones for .postheader etc.
Code is topiary
Offline
#23 2011-01-15 17:33:35
- haimirich
- Member
- Registered: 2011-01-12
- Posts: 15
Re: excerpt position
I added after this:
#left .post .postheader {background: url(images/postheader.jpg) no-repeat; height:10px;}
#left .post .postcontent {background:url(images/postbg.jpg) repeat-y; padding:10px 25px 10px 25px;}
#left .post .postbottom {background: url(images/postbottom.jpg) no-repeat; height:59px;}
THIS LINE:
#left .post .geek {background: url(images/geekpostheader.jpg) no-repeat; height:10px;}
Result is: success as postheader is concerned… but what about postbg and postbottom ?
How can I make them change too?
In frontpage form do i have to add this:
<div class=“postcontent <txp:section />”>
and this:
<div class=“postbottom <txp:section />”>
??
Offline
Re: excerpt position
haimirich wrote:
In frontpage form do i have to add this:
<div class=“postcontent <txp:section />”>
and this:
<div class=“postbottom <txp:section />”>
Yes, exactly. Note that if you want different background images for the different parts, with the classes this way you’ll have to use multiple-class selectors such as:
.postheader.video { /* background rule here */ }
.postcontent.video { /* background rule here */ }
.postbottom.video { /* background rule here */ }
Code is topiary
Offline
#25 2011-01-19 23:27:06
- haimirich
- Member
- Registered: 2011-01-12
- Posts: 15
Re: excerpt position
yeah, I worked on it for some days and i’m very satisfied!
Your help was extremely helpfull, i owe you a pizza! (italian one)
I got one last question concerning the lavalamp…
the black “thing” is by default on “sommario” … if you jump to “musica” section (or another one) that black “thing” is always on “sommario”.
Is this possible to have that on the current section instead of “sommario” (the default one)?
Offline
Re: excerpt position
Something of a guess, but try this: in the form named “navigation”, change this:
active_class="current"
to this:
active_class="selectedLava"
Code is topiary
Offline
#27 2011-01-20 11:33:16
- haimirich
- Member
- Registered: 2011-01-12
- Posts: 15
Re: excerpt position
Ufff, didn’t work. damn.
Offline
Re: excerpt position
Well, see this.
Automatic Default Location
LavaLamp carefully compares the link in the client location bar to thea hrefwithin thelielements of the container jQuery LavaLamp was assigned and default the starting location of the hover element to the matchinglielement. This can be overridden in several ways: with thestartItemoption, by assigning aselectedLavaclass to a list item, or by using the Home element feature.
Forgot to check, do you have the latest version of lavalamp?
Code is topiary
Offline