Register   Login
     
  Latest Posts  
RE: Sexy Lightbox
by gbrown on 5/16/2012 2:11 PM
RE: Listing Items in column on Main module
by tunersdream on 5/16/2012 11:39 AM
RE: Can't delete pictures
by smcculloch on 5/16/2012 8:17 AM
RE: slideshow from module latest
by smcculloch on 5/16/2012 8:15 AM
RE: Forum Rules
by smcculloch on 5/16/2012 8:15 AM
RE: how to disable email notifications for a new user registration on dnn5
by smcculloch on 5/16/2012 8:14 AM
RE: Sexy Lightbox
by smcculloch on 5/16/2012 6:44 AM
how to disable email notifications for a new user registration on dnn5
by soniap on 5/16/2012 5:39 AM
Sexy Lightbox
by gdavey on 5/16/2012 3:57 AM
RE: PA module email a LOT of people since DNN6 upgrade
by StevenT on 5/15/2012 8:30 PM
  Forums  
Subject: Article text flow around image
Prev Next
You are not authorized to post a reply.

Author Messages
Joe YayaUser is Offline
Registered Users
Ventrian Active Member
Ventrian Active Member
Posts:32

7/24/2007 2:08 PM  

Is there a way to get the article text to flow around an image in the way you see it here:
http://www.bloomberg.com/apps/news?pid=20601103&sid=aslvVeBAyehQ

I actually looked at the style sheets and HTML in the above URL and tried to imitate them within the scope the news article templates without success.

I am trying to edit view.item.html in the template editor along with style changes with no success.

Any ideas?

Joe
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:21062


7/25/2007 6:18 AM  
Shouldn't this just be a modification of the template with the alignment attribute set on the image tag?

Scott McCulloch
Site Administrator
Jack HoelzUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:899


7/25/2007 7:02 AM  

Scott, I have this trouble too. You can set the alignment but the text will not wrap.

I use all div tags for the templates and no tables. My guess is there is a way to do this with css but I can't quite get it to work.

I'll send you a template if you want to mess with it. I would love to get this working.


Get The Net!!

Jack Hoelz
Joe YayaUser is Offline
Registered Users
Ventrian Active Member
Ventrian Active Member
Posts:32

7/25/2007 7:10 AM  
Scott,

Thanks your reply.

That is exactly what I thought but you get a variety of results depending on how you do it. Its possibly quite simple. I've tried about 6 variations of things including styles, divs, spans and whatever.

Remember, that I don't have direct access to the image tag because it all gets taken care of by token replacement... Unless there is something I don't understand.

Joe
Scott McCullochUser is Offline
Administrators
Ventrian Master
Ventrian Master
Posts:21062


7/25/2007 7:16 AM  
Isn't there an [IMAGELINK] tag so you can form your own tag?

Scott McCulloch
Site Administrator
Jack HoelzUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:899


7/25/2007 7:28 AM  
Scott, just sent you a pm

If you feel like it see if you can get this to work with the IT-News template

Get The Net!!

Jack Hoelz
Joe MaierUser is Offline
Gold Membership
Ventrian Wiz
Ventrian Wiz
Posts:183

7/25/2007 8:02 AM  
Hi folks,

i think i did what you want on my private site:   www.wolfsbau.de
See the latest news module on the home page.

Here's what i did:
In the view settings of the latest news module, i applied a css class "HomepageNewsFeatured" to the parent element, containing  the news teaser and the image. In my case this is a table cell tag.

Then i defined the css-properties of the img tag within this td-tag in the Portal stylesheet:

td.HomepageNewsFeatured img {
float: left;
margin-right: 10px;
margin-bottom: 10px;
}


Hope this helps,
Joe

maiersoft internet solutions - www.maiersoft.de
Get your own managed DotNetNuke-Portal
Joe YayaUser is Offline
Registered Users
Ventrian Active Member
Ventrian Active Member
Posts:32

7/25/2007 9:21 AM  

That's great! I'll give that a shot. I am trying to do it when on the part where one actually views the article so i hope there isn't some subtle issue when I try your solution. That said, your layout gives me great ideas on how to improve mine. It's quite good.

Thanks!

Joe
DNN ProfessorUser is Offline
Gold Membership
Ventrian Master
Ventrian Master
Posts:767


7/25/2007 10:21 AM  

Hi JoeYaya,

Another interesting thing you can do with the templates is embed Google Adsense and Clickbank ads by working with div tags in the View.Item.html file.

 


Buck Anderson - DNN Professor

http://DNNprofessor.com

http://twitter.com/DNNprofessor

DotNetNuke Training - XMod Training Coach and XMod MVP


Jack HoelzUser is Offline
Registered Users
Ventrian Master
Ventrian Master
Posts:899


7/25/2007 2:08 PM  
THANK YOU! Worked likae a charm!

Now the next thing is to get the images resized on upload - darn 7 megapixel digital cameras.

Get The Net!!

Jack Hoelz
Joe YayaUser is Offline
Registered Users
Ventrian Active Member
Ventrian Active Member
Posts:32

7/25/2007 2:48 PM  

Rock and Roll! Wo0t!

It worked great. Thanks a million.

Joe
You are not authorized to post a reply.
Forums > Modules > News Articles > Article text flow around image



ActiveForums 3.7