CVS edit link for expandonline
Hi, my name is Peter Walter. I have been developing PHP for some years and have implemented a number of Drupal sites for my clients.I have written a module that I use on my own website at http://www.expandonline.co.uk, which I wish to contribute to the d.o community. You can see the results in the content of the home page and about page, and the footer block of all pages on my site.
My first module is an input filter which analyses the hierarchical structure of the content and wraps divs around the various blocks of HTML (eg a heading followed by a number of paragraphs), these blocks can then be used for presentational purposes using CSS (eg creating columns). The module allows full control over the div's class attribute and also enumerates the blocks so that they can be easily selected with CSS.
You can download the code from http://www.expandonline.co.uk/drupal/modules/structure-6.x-1.x-dev.tar.gz
I trust this is enough information for you to grant me a CVS account. I look forward to hearing from you.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | structure-6.x-1.x-dev.tar_.gz | 4.35 KB | peter.walter |
| #2 | structure-config.png | 32.47 KB | peter.walter |
| #1 | structure-6.x-1.x-dev.tar_.gz | 4.12 KB | peter.walter |
Comments
Comment #1
peter.walter commentedComment #2
peter.walter commentedScreenshot of config page
Comment #3
avpadernoHello, and thanks for applying for a CVS account. I am adding the review tags, and some volunteers will review your code, pointing out what needs to be changed.
As per Apply for contributions CVS access, the motivation needs to be expanded, and include more details about the features of the proposed module.
Comment #4
peter.walter commentedThe purpose of this module is to make life simpler/easier for the website editor; Without having to worry about presentation, or needing to add any extra markup on the node edit form, the node can be presented in multi-column or complex layout as defined in CSS.
Behind the scenes, the module scans the hierarchical structure of the html content, specifically looking for a separator (eg. hr) or header (eg. h1-6) html tags – then wraps a div around the heading along with the following text/images (until another heading/separator is found). The divs are nested and enumerated according to the hierarchy defined, allowing for simple CSS selection.
There are numerous options on the input filter config page (see screenshot above), allowing the designer/developer full control over the hierarchy, div class naming, as well as providing the possibility for adding ‘first’ and ‘last’ class attributes, and providing an ‘inner’ div if required for styling.
The module, in its current form is implemented as an input filter, however the main processing of the module is done in an external class – therefore it would be reasonable to assume that this module could be extended for other purposes as required in the future.
Comment #5
peter.walter commentedNew version with .install file to clean up database when uninstalling.
Comment #6
avpadernoThe code requires PHP5, but this dependency is not reported in the .info file; Drupal 6 is still compatible with PHP4.
Thank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.
Comment #9
avpaderno