New content type

Site Maintenance

There’s a new type of page that can now be created; a “Child Product Node” is a numbered page which is attached to another product page. So for example, you could add a page to describe the content of an individual issue of a magazine.

To use it, you must first create the “Product Page” and make a note of its node number (which is in the URL). Then enter that number as “Parent node” when you create the child page.

Links from the parent product page, and to other child nodes, will be automatically generated.

On another note, you can now add tables in page descriptions using a simple markup:

[table !Heading1 | !Heading

Row1 Cell1 | Cell 2 | Cell 3

Row2 Cell1

]

Ordering of related items

I have just put up issues 1-10 of Fred to see how they look and the sorting on the ‘Related Items’ doesn’t seem to be in ascending numerical order:

Fred | 1 | 10 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Indicentally are you happy with the Fred layouts?

Hmm.

Hmm. Yes, that looks like alphabetical order, instead of ascending numeric. It would probably be very easy to fix if I knew what I was doing in SQL…

hold on

Don’t try to create any more subpages for a bit, I think I have to change the upload page to get mySQL to treat those as numbers…

ready

OK, it should be working now. Feel free to continue uploading.

Fred layouts

The formatting looks fine to me, although personally I wouldn’t have used BLOCK CAPS. (I know that’s what was in the original source.)

I’ve updated the stylesheet a bit as well, so (like the product page) the first few lines of information are displayed to the right of the picture.

You're not wrong.

I have lower-cased the entries and it looks a lot better - takes longer to process each one but what the hay, It’s worth the effort.

I am adding in links to interesting stuff for later additions as I keep find myself going off on tangents otherwise.

Table parameters

Is the ‘table’ element a default Drupal entity and if so are there parameters to set things like cellpadding=”2” cellspacing=”2” as you would with an HTML table?

I know I could use the HTML but the shorthand way is nicer and does not tie down the format.

table

table is implemented by tables.module - cellspacing and cellpadding are not currently adjustable except by me adding things to the stylesheet. Was there something specific you had in mind?

colspan and rowspan are simulated by putting & or ^ into a cell on their own, which merged that cell into the one to its left or above respecively.

Thus:

123
4&5
67

(except & gets translated int & before the tables module sees it. There’s probably a workaround for this…)

Yup - the cell padding

The tables as they stand are quite tight together so I just wanted to increase the cell padding a touch to increase the whitespace in the cells.

Is this better?

(you may need to hit shift-reload to refresh the stylesheet.)

Splendid

Cheers.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.