Theme "Lady Bug" - Problem mit "Sortierbares
Theme "Lady Bug" - Problem mit "Sortierbares
Ich würde gern das Lady Bug-Theme benutzen. Allerdings ist die Überschrift unter index.php?/pages/archives.html (Plugin "Sortierbares Archiv der Einträge") kaputt und das Datum steht außerhalb des Eintrags. Ich find einfach die .tpls nicht, in denen ich das ändern kann. Welche sind das?
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Theme "Lady Bug" - Problem mit "Sortierb
Hi!
Wenn Du uns deine URL nennst könnten wir uns das mal ansehen?
Grüße,
Garvin
Wenn Du uns deine URL nennst könnten wir uns das mal ansehen?
Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Danke für die schnelle Antwort. Der Blog lief bisher nur auf meinem XAMPP. Ich hab das Rohgerüst nun mal schnell online gestellt. Die URL: http://cetp.ce.funpic.de/blog/index.php ... hives.html
(Sorry, I designed LadyBug, but I don't speak German. Garvin can translate if necessary.)
The date and title are reversed on the archive page. Title must come before date, or the date will be obscured.
Garvin, is this a modification to the default template? It looks like I should update the LadyBug template's archive .tpl, if such a thing exists.
The date and title are reversed on the archive page. Title must come before date, or the date will be obscured.
Garvin, is this a modification to the default template? It looks like I should update the LadyBug template's archive .tpl, if such a thing exists.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi Judebert!
In fact, the order of _date_ and _entry comes from the customarchive plugin, not from a s9y template.
So it seems to just be a problem that the plugin emits those two shuffled. I'm too afraid to change the order as it might break other existing themes...is there a chance to get Ladybug to work with _date coming before _title?
The customarchive plugin is not templated, so you can't really change that output. (Only by disabling its option "articleformat", but then the output also looks differently...)
Regards,
Garvin
In fact, the order of _date_ and _entry comes from the customarchive plugin, not from a s9y template.
So it seems to just be a problem that the plugin emits those two shuffled. I'm too afraid to change the order as it might break other existing themes...is there a chance to get Ladybug to work with _date coming before _title?
The customarchive plugin is not templated, so you can't really change that output. (Only by disabling its option "articleformat", but then the output also looks differently...)
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
The problem is that it doesn't help you to detect if the custom archive tpl is in effect because the output happens in the plugin and not in entries.tpl.
Maybe for CSS it would help to add a CSS class to the <body> of the page. You can use the $staticpage_pagetitle variable for that, but this one corresponds to the pagetitle variable that the user entered for that specific page...
Regards,
Garvin
The problem is that it doesn't help you to detect if the custom archive tpl is in effect because the output happens in the plugin and not in entries.tpl.
Maybe for CSS it would help to add a CSS class to the <body> of the page. You can use the $staticpage_pagetitle variable for that, but this one corresponds to the pagetitle variable that the user entered for that specific page...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Okay, I've got a CSS solution (thanks, EditCSS!).
Find this code in style.css:
Add an "h3" before the .serendipity_title, so it looks like this:
The LadyBug template reverses the tags for the date and title, so search engines will rank your entries according to their titles. The custom archive plugin is not templated, and therefore does not reverse the tags. It puts no content in the title's h4 tag.
By specifying the attributes of only the LadyBug-generated title, we remove the attributes of the custom archive version. It is no longer displayed.
Alternative solutions would be to add "margin-top" or "padding-top" in the h4.serendipity_date, or to set display:none in the h3.serendipity_title.
Find this code in style.css:
Code: Select all
.serendipity_title {
background-color: #FF8080;
-moz-border-radius: 10px; /* For the smart people */
padding: 5px;
position: relative;
top: -1em;
margin: -5px 20%;
text-align: center;
}
Code: Select all
h3.serendipity_title {
background-color: #FF8080;
-moz-border-radius: 10px; /* For the smart people */
padding: 5px;
position: relative;
top: -1em;
margin: -5px 20%;
text-align: center;
}
By specifying the attributes of only the LadyBug-generated title, we remove the attributes of the custom archive version. It is no longer displayed.
Alternative solutions would be to add "margin-top" or "padding-top" in the h4.serendipity_date, or to set display:none in the h3.serendipity_title.
Adding h3 to the existing ".serendipity_title" works like a charm, I wouldn't have thought that it would be that easy. Thanks alot. I couldn't have figured that out myself.
would also do. But it's h4 not h3.
Code: Select all
h4.serendipity_title {
display: none;
}