Home » Forum
NoNumber!

Joomla! Extensions •
Web Development •
Web Design •

I try to respond within 24 hours (excluding weekends). If I haven't responded by then, feel free to post a reminder or bug me via email.
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: tag in article
#6427
tag in article 6 Months, 3 Weeks ago  
Hi, I created a template that begins with a <table>

When I create an article using the template and then check it in Source mode, the first tag is <p> not <table>

This throws out the layout just enough to be really annoying.

Is there anything I can do?

Thanks.
Ottmar Ballou
Posts: 3
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6429
Re: tag in article 6 Months, 3 Weeks ago  
Unfortunately that is the editor placing a <p> tag by default inside the new article. It is there before you choose the template.
What you could do is use css to style it 'away'. Or use ReReplacer to remove the tags on output.
Peter van Westen
Admin
Posts: 4280
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! NºNumber!NºNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6430
Re: tag in article 6 Months, 3 Weeks ago  
Peter, thanks for your reply. I think that ReReplacer seems to be the way to go - I don't really know regex though.

What would be the regex to change <p><table> to <table> if <p><table> was the start of an article?

Actually, I could change the template to make it <table id="dummy> if that would make it easier - as that table id would only appear at the start of an article regardless of other tables.

Thanks.
Ottmar Ballou
Posts: 3
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#6432
Re: tag in article 6 Months, 3 Weeks ago  
Well, actually you would never want '<p><table>' in your content.
So try this with ReReplacer:
Search (no regex, just normal search):
<p><table>,</table></p>

Replace:
<table>,</table>
Peter van Westen
Admin
Posts: 4280
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! NºNumber!NºNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#6433
Re: tag in article 6 Months, 3 Weeks ago  
Thanks Peter.
Ottmar Ballou
Posts: 3
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Joomla Open Source Training