How would this work:
I've modified the code in my test site to work like this:
When logged in, the plugin checks for a page with the slug "clientpage_<client name>" and if it exists, displays the content for that page before the file list.
I've created a page (using the normal page manager) with the slug "clientpage_test" which matches up with the ClientFile named "test". In the page options I've set it to "private" so it can't be viewed in the front end at all.
Try it at at my testsite: http://testbed.cartocopia.com/clientarea/
(I have created a page for "test" only, so logging in a test2 displays nothing as the page file doesn't exist)
I can make this "official" and update extend if this would be worthwhile.
To try it yourself find this:
around line 500 and insert this above it:
-Rob A>
I've modified the code in my test site to work like this:
When logged in, the plugin checks for a page with the slug "clientpage_<client name>" and if it exists, displays the content for that page before the file list.
I've created a page (using the normal page manager) with the slug "clientpage_test" which matches up with the ClientFile named "test". In the page options I've set it to "private" so it can't be viewed in the front end at all.
Try it at at my testsite: http://testbed.cartocopia.com/clientarea/
(I have created a page for "test" only, so logging in a test2 displays nothing as the page file doesn't exist)
I can make this "official" and update extend if this would be worthwhile.
To try it yourself find this:
Code:
//
// display list of client files
//
around line 500 and insert this above it:
Code:
//
// display client page if it exists - slug is "clientpage_<client name>"
//
$userpage_file = GSDATAPAGESPATH . "clientpage_" . $client . ".xml";
if ( file_exists($userpage_file) )
{
$userpage_data = getXML($userpage_file);
$clientfiles_content .= stripslashes( html_entity_decode($userpage_data->content, ENT_QUOTES, 'UTF-8') );
}
-Rob A>