caroig Gold Membership
 Nuke Master Posts:284

 |
| 5/02/2007 3:12 AM |
|
As far as I can tell property search is as it comes out of the box and cannot be styled.
I would like to be able to style the look of search and position it where I want on the page. The same goes for other block tokens such as photos.
I can appreciate the need to retain a straight forward out of the box config, but perhaps a further option on the Landing Page Settings could allow a div ID to be specified for each element, search, types, featured to allow positioning - for example drop the search element on the left pane and perhaps a 'search results' element on the content pane.
I realise that the search contents are complex and would be difficult to open up to styling, but as a minimum I would like to specify the width of the fields - 150 looks a bit ridiculous for a 5 character reference. Ideally I would like to be able to position the label and contents seperately for each field.
Could the template concept be extended to search label and search field? It would be nice to have a class available for each control type as well.
Xmod has quite a nice feature to set templates to flow mode - this basically changes the output from tables to divs and allows the developer to add positioning but retaining a default out of the box format. Perhaps the time has come to start the transition away from tables? |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 5/02/2007 6:57 AM |
|
Your right, the search can't really be styled at the moment.
You should be able to style the photo display, e.g. Photo.First, Photo.Item, but you need more?
I'd be interested hearing more of your ideas for the search page? e.g. flow layout. I know there is a hardcoded with of 150 on the label. |
|
Scott McCulloch Site Administrator |
|
|
caroig Gold Membership
 Nuke Master Posts:284

 |
| 5/03/2007 6:56 AM |
|
I've just come across a good example of what 'flow type' might do. I'm modifying the featured templates and I'm trying to do something like this:-
Featured.Header
(div class="FeaturedWrapper")
Featured.Item
(div class="FeaturedContent")
MY CONTENT
(/div)
Featured.Footer
(/div)
When the module gets rendered then the result is:-
(div class="FeaturedWrapper")
(table id="dnn_ctr467_Default_LandingPage__ctl2" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse;")
(tbody)
(tr)
(td align="center")
(div class="FeaturedContent")
MY CONTENT
(/div)
(/td)
(td/)
(/tr)
(/tbody)
(/table)
(/div)
Flow mode would just avoid all the embedded markup.
The td align="center" is a drag and I'm not sure what the (td/) is doing!
I guess the items row would become redundant. |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12820


 |
| 5/03/2007 7:09 AM |
|
Oh right, we were talking about 2 different things I think. I understand flow mode would work similar to the list controls in DNN (renders a table rather then just a simple flow).
What about search styling? |
|
Scott McCulloch Site Administrator |
|
|
caroig Gold Membership
 Nuke Master Posts:284

 |
| 5/03/2007 7:57 AM |
|
If search were templated that would do the job.
I want to control: My label postion, my control container postion and my controls style.
The current token format would do the job for the label position and container postion.
For text or selects that's realatively straight forward as I can postion them in the template and assign the class or id that I want. For range, radio and checkbox - well less so but if the controls were span for range and list for checkbox, then I could use containerclass.span or .li to style them.
I would guess that if the template "seachcontrols" were not present then you'd just build today's table format on the fly.
As for layout. Perhaps the landing page module has an invisible mode. I add it wherever I want on the page. I then add generic landing page container modules to the panes I require naming them with the id/class that I have specified in my layout settings for each result type (search,featured,types & search results). I can't really imagine a case where you'd want more than one of a type on a page, but if so perhaps the template set for the type could be overidden. (I could equally add a text module in place a specific container module and stick in a DIV with the appropriate ID - I'd be happy with that). |
|
|
|
|
Steven Webster Gold Membership
 Nuke Master Posts:219


 |
| 5/03/2007 7:43 PM |
|
| If I might jump in on this it would also be nice if search was a seperate module from results and details...more control over placement on the page. |
|
Steven Webster Overlook Technologies |
|
|
caroig Gold Membership
 Nuke Master Posts:284

 |
| 5/04/2007 12:51 AM |
|
Posted By smcculloch on 5/02/2007 6:57 AM
You should be able to style the photo display, e.g. Photo.First, Photo.Item, but you need more?
I hadn't noticed the photo.first etc templates - great! I'll have a look at them.
|
|
|
|
|
Antonios Valamontes Registered Users
 Nuke Active Member Posts:40


 |
|