Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Pagebuilder Directory names

Quote Reply
Pagebuilder Directory names
Hi All,

From reading thru other Pagebuilder posts here i see i should be able to get PB to build any directory name for a link that's defined in the lsql_Links table.

I've setup a new column in lsql_Links called DirName and using Pagebuilder have setup a page like this:

Page Type: Link
Page Name: ArticlePage1
Page Title: ArticlePage1
Parent Page: Root
Breadcrumb: Type None
Page Condition: LinkType = Article
Build Directory: articles/<%DirName%>
Build Filename: index.php

Which currently returns an error:

ArticlePage1 (Unable to build link page}.
Filename should contain one of the following tags: and/or
Directory should contain one of the following tags: , ,

I had this working a few weeks back before my site went live (damned if i can remember how i did it Frown)

thanks for your help or suggestions!



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile

Quote Reply
Re: [Chas-a] Pagebuilder Directory names In reply to
If you are sure that your 'DirName' column only contains valid characters (for a directory), and that it is unique, then you can edit the file 'admin/Plugins/PageBuilder.pm'.

Near the beginning of the file, add the bit in red:
Code:
$PAGEBUILDER_FIELDS = { link => { filename => [qw/LinkID/],
directory => [qw/LinkID Full_Name CategoryID DirName/] },
...

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Pagebuilder Directory names In reply to
Cheers Ivan!

Thats got it working.



Comedy Quotes - Glinks 3.3.0, PageBuilder, StaticURLtr, CAPTCHA, User_Edit_Profile