Can a page list template that prints the page areas (eg. blog_index.php) load all block asset files?
Permalink
The blog_index.php page list template not only prints the page attributes but the Main -area of the page. I've had much success with that idea and developed it further to create "one page app" -sites.
A problem with it that if the area contains blocks that load .js or .css files from their folder - none of those assets are loaded when the area is inside a page list.
Is there a solution? Has anyone run into same sort of problem.
A problem with it that if the area contains blocks that load .js or .css files from their folder - none of those assets are loaded when the area is inside a page list.
Is there a solution? Has anyone run into same sort of problem.
Ok, let me try another way. Don't think about the "one-page-app"-thing.
The page list block has "blog_index.php" template built in.
That template doesn't just print out page title, description and link (like the default page list template) but also it prints the "Main" -area of each page. -which is very useful for large blog-sites and such.
But, when that Main area has a block that has some .js and .css assets - like a slideshow - those assets aren't loaded on the page with the pagelist.
The page list block has "blog_index.php" template built in.
That template doesn't just print out page title, description and link (like the default page list template) but also it prints the "Main" -area of each page. -which is very useful for large blog-sites and such.
But, when that Main area has a block that has some .js and .css assets - like a slideshow - those assets aren't loaded on the page with the pagelist.
I think it will be better if you add some codes or screenshots because it really hard to understand the problem (one page app its really general term).
This issue is specific to pagelist or general to custom blocks in concrete5?
Its not mandatory to add asset to your block (css,js). Read her:
http://documentation.concrete5.org/developers/working-with-blocks/w...