Sign Up for OSTraining

Welcome, Guest
Username: Password: Remember me

TOPIC: module position in article

module position in article 1 year 1 month ago #44793

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 371
  • Karma: 0
Hi,

I used your blog post and video www.ostraining.com/blog/joomla/place-mod...ide-joomla-articles/ to put a module in an articel. Works fine.
Now my next step would be getting more control over the postion of the module within the aticle. I want the module next (at the right side) to some text (and not under the text) or eg at the right top side of an articel. Is it possible to do so? And how?
Another thing: it seems that the module class suffix does not work for the modules that I put in an article. Or is there a way to make the class suffix work?

Regards, Maurice
Maurice
Please become a member of OSTraining to reply to this post.

module position in article 1 year 1 month ago #44799

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 17198
  • Thank you received: 450
  • Karma: 64
Hi Maurice,

You can add a div around the {loadposition yourposition} and style it using CSS to get it where you'd like it.

The module class suffix should still work when the module is within an article. Give it a try using a custom HTML module to be certain. If it works in there, perhaps it's an issue with the class suffix of whichever module you're using.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

module position in article 1 year 1 month ago #44981

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 371
  • Karma: 0
Hi Nick,

Somehow I cannot get the module at the right postion. Can you give me an example with coding that puts the module at the right top part of an article?

Thanks, Maurice
Maurice
Please become a member of OSTraining to reply to this post.

module position in article 1 year 1 month ago #45004

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 17198
  • Thank you received: 450
  • Karma: 64
Hi Maurice,

Yes, sure thing. Try the following code:
<div>
<div style="float:right;">{loadposition inContent}</div>
<p>Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph. Some paragraph.Some paragraph. Some paragraph.</p>
</div>

I hope this helps! Let me know if you have any questions.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

module position in article 1 year 1 month ago #45030

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 371
  • Karma: 0
Hi Nick,

Thanks. Module postion works fine now.
The module class suffix still does not work in an article. I tried it with a simple custom module, but that doesn't work either. Also the module does not show the title.
Any idea how to solve this, specially the class suffix?

Regards, Maurice
Maurice
Please become a member of OSTraining to reply to this post.

module position in article 1 year 1 month ago #45047

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 17198
  • Thank you received: 450
  • Karma: 64
Hi Maurice,

Great! You're welcome! I'm glad it's not working! :)

Would you open up the module class suffix in a new topic please? I'll reply quickly as soon as I see it. Please provide a link to the page and let me know what suffix you're using so that I can check the code.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

module position in article 1 year 1 month ago #45060

  • mlehr
  • mlehr's Avatar
  • OFFLINE
  • OSTop Dog
  • Posts: 371
  • Karma: 0
Okay Nick, I just did.
Maurice
Please become a member of OSTraining to reply to this post.

module position in article 1 year 1 month ago #45064

  • Nick
  • Nick's Avatar
  • OFFLINE
  • Administrator
  • Posts: 17198
  • Thank you received: 450
  • Karma: 64
Cool. Thanks Maurice! I'll reply there.

Kind regards,
Nick
Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
Please become a member of OSTraining to reply to this post.

Sign Up for OSTraining

Copyright 2013 Open Source Training, LLC. All rights reserved.