[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Stop joomla custom html module from putting text in a div...

Posted on 2011-03-04
8
Medium Priority
?
2,303 Views
Last Modified: 2012-08-13
I want to add a module to my page with this content:

"this is my module"

However, the module keeps getting saved as:

<div class="custom">this is my module</div>

... And, it's messing everything up!  How can I stop this from happening?
0
Comment
Question by:EMB01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 12

Assisted Solution

by:Panagiotis S
Panagiotis S earned 1000 total points
ID: 35040565
do you have module suffix in your custom module
if yes delete it for the new module
0
 
LVL 11

Expert Comment

by:Amanda Watson
ID: 35041164
..or alternatively you can add a module suffix and add some styling that you want
0
 
LVL 14

Author Comment

by:EMB01
ID: 35041354
I don't want any styling, I just want it to go like this:

From:
<p>{loadposition mymodule}</p>

To:
<p>This is what's in my module.</p>

However, it does this stupid thing:

<p><div class="custom">This is what's in my module.</div></p>

...  Which throws off my page.
0
Understanding Web Applications

Without even knowing it, most of us are using web applications on a daily basis. Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We often confuse these web applications tools for websites.  So, what is the difference?

 
LVL 11

Assisted Solution

by:Amanda Watson
Amanda Watson earned 1000 total points
ID: 35041817
Oh ok, so you are trying to load a module into an article and within the article it adds a div into your loadposition

You could try going to PLUGIN MANAGER find CONTENT .LOAD MODULE then in the plugin parameters from the drop down list select a style of RAW OUTPUT

See if that helps
0
 
LVL 12

Expert Comment

by:Panagiotis S
ID: 35042160
what exactly do you want to do?

 
0
 
LVL 14

Author Comment

by:EMB01
ID: 35043660
>> trying to load a module into an article and within the article it adds a div into your loadposition

Yes.  That's exactly correct.

However, when I tried this, it already says "raw output."  I attached a screenshot for your review.
ss030511.jpg
0
 
LVL 14

Accepted Solution

by:
EMB01 earned 0 total points
ID: 35043730
Thanks for your help so far.  I fixed it.  Had to go to:

joomla/modules/mod_custom/tmpl

Open the default.php file and remove the <div class="..."> and </div>.

Now, it doesn't wrap it in div...
0
 
LVL 14

Author Closing Comment

by:EMB01
ID: 35135863
Thanks for help.
0

Featured Post

Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question