short code [list]

Started by Jon Toomsen, January 17, 2024, 09:49:30 AM

Previous topic - Next topic

Jon Toomsen

Starting to test shortcode syntax - This does not work.
is there a declare I must use.


[list Cars$][data rowsep=/]Ford/Gm/Audi/Volvo[/data][/list]

Mike King

I haven't checked but it looks like you are missing the trailing separator.
I think it should be:

[list Cars$][data rowsep=/]Ford/Gm/Audi/Volvo/[/data][/list]

Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Mike King

I just did a test and the trailing slash is not required (although it probably should be there).

Using PxPlus 2023 the following web page worked for me with or without the trailing separator.

<!DOCTYPE html>
<html>
<head>
<meta name="author" content="Mike King" />
</head>
<body>
[ttl]Cars[/ttl]<br>
<p>[form program=myprog]</p>
[list Cars$][data rowsep=/]Ford/Gm/Audi/Volvo/[/data][/list]
<br />
[list Cars2$][data rowsep=/]Ford/Gm/Audi/Volvo[/data][/list]
[/form]
</body>
</html>
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Jon Toomsen

Yes it all works - getting used to html again.
Thanks

Mike King

#4
There are a number of ways to create HTML using PxPlus that don't require much knowledge of HTML itself.

I personally use the PxPlus HTML editor (*htmledit) if I want to design the screen myself.  It has menu options to insert Webster short odes.  Basically just start the editor and enter the short codes. No HTML coding required.

You can also use the file maintenance generator to create forms based on file definitions.  It can make general maintenance screens which you can customize or inquiry screens which provide basic layouts that you then add events to. 

Using the section and row short codes allows you to create responsive screens without much work.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com