I noticed that I can add some html to document with .. raw:: html
<?php echo "myphpcode"; ?> But how do I add this to a table? On Jul 13, 12:02 pm, Lars <[email protected]> wrote: > Hi, > > I have been quite happy with sphinx documentation so far, but I have > a few questions that I was unable to find the answer for. So far I > learned about _templates/layout.html which has helped me quite a bit, > making the output .php and checking for valid user. I was unable to > figure out how to make _sources into php files that would also check > for valid user, so I was forced to stick with .htaccess for this > directory. > > Now my main issue at the moment is formatting certain text and > classes, I am wondering if there is options to run scripts inside of > layout.html? One of my main interests is, adding dynamic data to > static data, lets say, tables and lists. If I make a table that is a > checklist with basic steps like; > > 1. Read emails > 2. Check todo list > 3. Start application X. > ... > > And this table I want to add <checkbox> code, that is dynamic based > on selected user or data. Now the php code to fetch the php variables > data I can make quite easy, but what I am wondering about is, when > in .rst documents i add: > > .. cssclass:: todolisttable > > ============== ================ > Todo Completed > ============== ================ > Read Emails ReadEmails_ > Check Todolist CheckTodo_ > Start MyApp StartMyApp_ > ============== ================ > > How do I make layout.html change ReadEmails_ to : <checkbox > name="reademails" <?php echo $reademailschecked; ?>>, as this would be > very usefull for me. > > I understand that I can make the php code to get variables if I add > the following to layout.html: > > {% block body %} > <?php echo "my php code to get variables"; ?> > {{ super() }} > {% endblock %} > > And last, any suggestions in how to make the source into php files > would be much appreciated. > > Thanks in advanced, Lars -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
