"more"-Link <br>?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Arne
Posts: 23
Joined: Thu 10. Nov 2005, 00:02
Contact:

"more"-Link <br>?

Post by Arne »

Hi together,

I'm wondering why the "more"-link in the articlelist is separated from the preview text... I'don't want it that way. Seems as if there's a hidden <br> or something like that, but I couldn't figure out in sample.tmpl...

My problem is marked in this picture:
Image

Can anyone say what I got to change?
Thx
Arne


Deutsch: Kann mir jemand erklären, warum "Zum Artikel..." durch einen Absatz getrennt wird, bzw. wo ich den eliminiere?
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

Just a guess... if I understand you right...
but it looks like the preview text is placed in a paragraph... which forces "more" link to next line.

"conf.template_default.inc.php"

Code: Select all

$template_default["top_text_before"]        = '<p class="topText">';
$template_default["top_text_after"]         = '</p>';
$template_default["top_readmore_before"]	= " ";
$template_default["top_readmore_link"]		= "more…";
$template_default["top_readmore_after"]		= "";
Arne
Posts: 23
Joined: Thu 10. Nov 2005, 00:02
Contact:

Post by Arne »

$template_default["top_text_before"] = '<p class="topText">';
$template_default["top_text_after"] = '</p>';
$template_default["top_readmore_before"] = " ";
$template_default["top_readmore_link"] = "Zum Artikel…";
$template_default["top_readmore_after"] = "";
$template_default["top_headline_space"] = "";
$template_default["top_subheadline_space"] = "";

This is my conf.template_default

What should I change?
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

hi arne,

try this -may be works:

$template_default["top_text_before"] = '<p class="topText">';
$template_default["top_text_after"] = '&nbsp;zum Artikel</p>';
$template_default["top_readmore_before"] = " ";
$template_default["top_readmore_link"] = "";
$template_default["top_readmore_after"] = "";
$template_default["top_headline_space"] = "";
$template_default["top_subheadline_space"] = "";[/quote]
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
Goran
Posts: 81
Joined: Thu 27. Nov 2003, 11:43
Location: Zagreb, Croatia
Contact:

Post by Goran »

phpwcms_template/inc_cntpart/articlesummary/list/sample.tmpl like this:

Code: Select all

<p style="margin:0">[SUMMARY]<strong>{DATE:F:DE}</strong>{SUMMARY}[/SUMMARY]
[MORE]<a href="{ARTICLELINK}">{MORE}</a>[/MORE]</p>
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

sag ich doch :lol:
Arne
Posts: 23
Joined: Thu 10. Nov 2005, 00:02
Contact:

Post by Arne »

Thanks - finally it worked :D

[SOLVED]
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Hi
Can you please post your cod? Im trying to creat as thats pictures in first post, but i dont know how to do that.??? This is my code.

Code: Select all

// article listing with summary
$template_default["space_top"]				= '';
$template_default["space_bottom"]			= '';
$template_default["space_aftertop_text"]	= '';
$template_default["space_between_list"]		= '';
$template_default["space_between_sum"]		= '';
//
$template_default["top_listentry_before"]   = '<div class="listEntry">';
$template_default["top_listentry_after"]    = '</div>';
$template_default["top_headline_before"]    = '<h1>';
$template_default["top_headline_after"]     = '</h1>';
$template_default["top_subheadline_before"] = '<h2>';
$template_default["top_subheadline_after"]  = '</h2>';
$template_default["top_text_before"]        = '<p class="topText">';
$template_default["top_text_after"]         = '</p>';
$template_default["top_readmore_before"]	= " ";
$template_default["top_readmore_link"]		= "more...";
$template_default["top_readmore_after"]		= "";
$template_default["top_headline_space"]		= "";
$template_default["top_subheadline_space"]	= "";

Please help
Arne
Posts: 23
Joined: Thu 10. Nov 2005, 00:02
Contact:

Post by Arne »

Code: Select all


// article listing with summary
$template_default["space_top"]				= '';
$template_default["space_bottom"]			= '';
$template_default["space_aftertop_text"]	= '';
$template_default["space_between_list"]		= '';
$template_default["space_between_sum"]		= '';
//
$template_default["top_listentry_before"]   = '<div class="listEntry">';
$template_default["top_listentry_after"]    = '</div>';
$template_default["top_headline_before"]    = '<h1>';
$template_default["top_headline_after"]     = '</h1>';
$template_default["top_subheadline_before"] = '<h2>';
$template_default["top_subheadline_after"]  = '</h2>';
$template_default["top_text_before"]        = '<p class="topText">';
$template_default["top_text_after"]         = '</p>';
$template_default["top_readmore_before"]	= " ";
$template_default["top_readmore_link"]		= "Zum Artikel…";
$template_default["top_readmore_after"]		= "";
$template_default["top_headline_space"]		= "";
$template_default["top_subheadline_space"]	= "";
$template_default["top_count"]				= 1;
$template_default["article_order"]			= 1; // 0 = manual, 2 = creation date, 4 = start date -> + 0 = ASC, + 1 = DESC
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Hi Arne
Thanks for your cod. But... That’s not helped me at all.
How have you fix article text, sup text, and summery text? I try to make something like this picture.
Image

Example as I have now:
Article text
Sup text
Images: summery text summery text summery text
Images: summery text summery text summery text. More...
Images:
Images:

Example as I won’t to make.
Images: Article text
Images: Sup text
Images: summery text summery text summery text
Images: summery text summery text summery text. More...

Just like from your picture!
Can you please or someone ells explain how I can make this style??
Stim
Posts: 587
Joined: Mon 6. Jun 2005, 13:13

Post by Stim »

Hi
I have fixed this problem other ways!! I have just a simple question. Its that title on pictures just a regular title?? I mean you manually has writing them, and the real article title it’s hidden?
nillux
Posts: 11
Joined: Fri 6. Jan 2006, 09:06

just delete the tag

Post by nillux »

just delete the text <p></p> tag and change it into <span></span>, that should solve your problem...
Post Reply