With new 'text/layout', no classes are available

Luke Plant avatarLuke Plant created an issue

A new 'Text/layout' plugin instance has not been saved to the database. This means there is no link to the 'page', and hence it is impossible to know what template to use. This means that it ends up making a call to:

/semantic/retrieve_styles/?template=&page_id=

which returns an empty list of styles.

It is difficult to get the information about the template through to the place it is needed in the server side code, because the plugin form is created in a completely different request to the main page.

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.