Loading...
 
Features / Usability

Features / Usability


construct for BR tag

posts: 23 United States
Is there a tikiwiki construct to substitute for the BR tag that HTML has?
posts: 2881 United Kingdom

Hi,

There is no coded wikitag thats linked to a BR. Personally I've not come up to any sitation thats needed it. If your trying to put new paragraphs in a BOX or SPLIT plugin, that has been fixed in 1.8.1 which is current latest 1.8 CVS code.

Let me know more details and I might be able to recommend a different solution.

Damian


posts: 23 United States

Damian,

I ran across this while working on a glossary, using the "dictionary" construct:

word
definition


I wanted to have a multi-paragraph definition, which, of course, screwed up the dictionary construct. At this moment, I have inserted HTML break tags, and checked the Allow HTML box, which is not a great solution, as I have to keep remembering to check it each time I edit the page.

Any ideas on this would be welcome.

Thanks,
Susan

posts: 2881 United Kingdom

Hi

What ideas do you have for a wiki tag and Ill make it happen.

> mathsinger:
> Damian,
>
> I ran across this while working on a glossary, using the "dictionary" construct:
> ;word:definition
>
> I wanted to have a multi-paragraph definition, which, of course, screwed up the dictionary construct. At this moment, I have inserted HTML break tags, and checked the Allow HTML box, which is not a great solution, as I have to keep remembering to check it each time I edit the page.
>
> Any ideas on this would be welcome.
>
> Thanks,
> Susan


posts: 2881 United Kingdom

Hi

What ideas do you have for a wiki tag and Ill make it happen.

> mathsinger:
> Damian,
>
> I ran across this while working on a glossary, using the "dictionary" construct:
> ;word:definition
>
> I wanted to have a multi-paragraph definition, which, of course, screwed up the dictionary construct. At this moment, I have inserted HTML break tags, and checked the Allow HTML box, which is not a great solution, as I have to keep remembering to check it each time I edit the page.
>
> Any ideas on this would be welcome.
>
> Thanks,
> Susan


posts: 23 United States

JeezLouise — you ARE the TikiGod....... how about just {br}
-- Susan

posts: 51 United States

You can edit the TIKILIB.PHP file and do a search/find on the word "boxes".

After the 3 or 4 lines starting with $data = preg_replace bla, you can add the following:

$data = preg_replace("/\{br\}/", "<br>", $data);

and this will give you exactly what you are looking for.

Good luck.


> mathsinger:
> JeezLouise — you ARE the TikiGod....... how about just {br}
> — Susan


posts: 51 United States

You can edit the TIKILIB.PHP file and do a search/find on the word "boxes".

After the 3 or 4 lines starting with $data = preg_replace bla, you can add the following:

$data = preg_replace("/\{br\}/", "<br>", $data);

and this will give you exactly what you are looking for.

Good luck.


> mathsinger:
> JeezLouise — you ARE the TikiGod....... how about just {br}
> — Susan


posts: 1001 Canada
Whithout saying a br construct is needed, I remember this was also needed for tables.

posts: 23 United States

Thank you , thank you , thank you,

Now I have a wee toe-hold into this thing.

I also added a {linebreak} contstruct:

$data = preg_replace("/\{linebreak\}/", "", $data);

I presume this all goes away and must be redone with upgrades. Or is there a way to do local changes.


posts: 23 United States

The empty quotes had 2 BR tags. How do you get them to show up in your posts?

-- Susan


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting