Developer forum

Forum » Templates » News

Reply
Hi!

I need to move the "Read more" button to the end of the teaser-text. Right now it s placed on the line beneath. How to do that?

Thanks in advance!
Kristian

Replies

 
Reply
kw@pravda.dk wrote:
Hi!

I need to move the "Read more" button to the end of the teaser-text. Right now it s placed on the line beneath. How to do that?

Thanks in advance!
Kristian



Try to put the teaser and link within the same HTML block element.
Maybe you need to do a 'display: inline;' on the link.

// Dammark

 
Reply
Where can I find the link?

 
Reply
kw@pravda.dk wrote:
Where can I find the link?




Hi Kristian

If you create the link like this:
Read more


Then it should work
 
Reply
Jeg får denne fejl ved klik på linket...:

Server Error in '/' Application.
Illegal characters in path.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Illegal characters in path.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Illegal characters in path.]
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +3492154
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +163
System.Web.CachedPathData.GetConfigPathData(String configPath) +382
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +132
System.Web.HttpContext.GetFilePathData() +27
System.Web.HttpContext.GetConfigurationPathData() +26
System.Web.Configuration.HttpCapabilitiesBase.GetBrowserCapabilities(HttpRequest request) +133
System.Web.HttpRequest.get_Browser() +197
System.Web.ErrorFormatter.RequiresAdaptiveErrorReporting(HttpContext context) +104


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
 
Reply
Yeah ... that's true. The editor fucked up the HTML that I wrote.

But if you create a link like this:
Read more


Then it should work

// Sebastian
 
Reply
Hi!

05 February 2007
Oh, no, it is an ever fixed mark wi...
More
Read more

The above is the news displayed on the front of the website. The "Read more" is the link you provided that has been putted into the element template. I have no idea where the "More" link is comming from.

What I want is:

05 February 2007
Oh, no, it is an ever fixed mark wi... more
 
Reply
Then it's probably because that there are som block-elements between. Or because og naturral linebreaking

// Dammark
 
Reply
You are quite right! It helped when I removed the link (doh!).

Ok, last question. This is the result now:

05 February 2007
Oh, no, it is an ever fixed mark wi...
More

I would like:
05 February 2007
Oh, no, it is an ever fixed mark wi... More

Are there any way to get the link to the same line?

I am not alloved to show my template, but it is a simple TD containg all elements...
 
Reply
kw@pravda.dk wrote:
You are quite right! It helped when I removed the link (doh!).

Ok, last question. This is the result now:

05 February 2007
Oh, no, it is an ever fixed mark wi...
More

I would like:
05 February 2007
Oh, no, it is an ever fixed mark wi... More

Are there any way to get the link to the same line?

I am not alloved to show my template, but it is a simple TD containg all elements...



Try using one of these 2 tags for you teaser text:
@DWNewsManchetClean
@DWNewsFirstXCharClean

// Sebastian

 

You must be logged in to post in the forum