Hi Guys,
I've defined 2 content types 'News Article' and 'Job Vacancy'. Each one has its own fields such as 'headline', or 'salary'. I am using the Views module for each type, to give a list of that type, e.g. at /news I list the news articles and at /vacancies I list the job vacancies. That's all working great but I have some questions.
1) When I click a news article title link or a job vacancy title link, the breadcrumb shows Home > Title and yet the URL shows /news/title or /vacancies/job-title. I would like the breadcrumb to show Home > News > Title or Home > Vacancies > Job Title - how can I achieve this?
2) I need to customise the layout for the content display of a News Article or Job Vacancy. At the moment, they are both similar, in that the field name is in bold and then the value is on the next line. I'd like to style these content types in how they look in the page quite differently. How do I style (with CSS) to my heart's desire News Article and Job Vacancy. I notice the HTML for the page does not really identify the content as a News Article or Job Vacancy, although it does have a class of flexinode-3 - but that's not really a nice CSS selector is it?
3) I use clean URLs and pathauto. When I create a Job Vacancy, it will often be the case that I will create the same Job Title, e.g. 'Manager'. Because I use clean URLs, the job title becomes unique, e.g. /vacancies/manager cannot occur be used twice. How would I get around this? Assuming I am happy to use IDs, e.g /vacancies/3, but I want to use clean URLs. If I specify no URL, I get a URL of /node/nn for the job vacancy, but I'd rather have /vacancies/3 .. how might I achieve this?
4) We have a system written in PHP already that we wish to integrate into the site. We white-label this system too (reuse and integrate with our partners) and therefore we cannot write it with Drupal's form API etc.., but I still need to include it within the Drupal site so its accessible. What is the best way to go about this? I could for example create a normal page in Drupal, and use a PHP include, but what have others done here?
Thanks to all who can help with these remaining sticking points!
ADC
Comments
For issues 1 & 2 why don't
For issues 1 & 2 why don't you use CCK and content templates. With that combination you could style in any way you like adding more or less fields as you feel needed.
http://chibabeat.com/
I think I already have used
I think I already have used CCK given that I created my own content types? It's certainly enabled in the modules list, and I used content > content types to create the news article and job vacancy types. will look at content template though :)
On point 2), I believe that
On point 2), I believe that you can create a copy of your node.tpl.php file which is named node-flexinode-3.tpl.php (or whatever your flexinode number is) and then do a completely separate node theme for that flexinode. Here's the article:
http://drupal.org/node/45475
that sounds neat, i will
that sounds neat, i will check that out .. shame you have to tie the file name to an id, but hey!
OK, 1 & 2 are sorted using
OK, 1 & 2 are sorted using CCK for the content type definitions, and a node tpl file for that content type for customising.
So, just 3 & 4 now :) Anyone? Anyone? Bueller? Bueller? ;)
Well, working down... On
Well, working down... On number three, am I right in understanding that in the Vacancies > Manager sequence, "Manager" would be a node?
If so, this would be kind of basic, but you could just get more detailed with your title, e.g. "Manager_Req_4512" or "Manager_Verizon_Store"
I haven't tried before, what happens if you enter several nodes with the same URL? Does it automatically number them, or does it just not let you do it?