drupal - Help with Content Type Display -
I'm new to Drupal and how do I understand the subject matter of a content type? I am creating a realtor site for a customer under which the type of my main content will be like 'property listing'. I have installed all the necessary modules to help in uploading images and everything works properly
Example:
// Full size images - me Need to be able to display fully and thumbnail images. & Lt; Ul class = "gallery-output" & gt; & Lt; Li & gt; & Lt; Img src = "example.png" / & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; IMG src = "example-two pages" /> & Lt; / Li & gt; & Lt; / Ul & gt; // thumbnail image & lt; Ul class = "gallery-nav" & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; & Lt; Img src = "example_thumb.png" /> & Lt; / A & gt; & Lt; / Li & gt; & Lt; Li & gt; & Lt; A href = "#" & gt; & Lt; Img src = "example- two_thumb.png" /> & Lt; / A & gt; & Lt; / Li & gt; & Lt; / Ul & gt;
Now I know that you have to make a node- [content type] .tpl.php file to make changes. I do not know where he is, so please help me.
My copied nodes - J.J.P.P.P. I have the file in:
& lt; Div class = "content clear-block" & gt; & Lt ;? Php print $ content? & Gt; & Lt; / Div & gt;
Should I delete it and replace it with my own custom solution? Or can I make my own changes to the template.ff file? If both are possible, then what is the preferred option? I am using: cck, filefield, imageapi, imagecache, and imagefield if any pre-process function is changing then the solution is correct, so what's the best way to keep track of the bottom right?
Please help! (Oh, and if someone says 'Use scene' I think I'll go crazy - so please do not do it, I am not looking at this solution) :)
< Div class = "post-text" itemprop = "text">
node-jtlfpp Your approach is absolutely right. Contains $ content
content complete , as it is processed. If you want style in your CCK field or evenly, then you have to get these variables. On the page, it is not visible to you only because everything is inside $ content
.
As a good help, please install and (more importantly). The theme developer allows you to inspect the all variables available on the site, what is called a block, which function is used to perform which part and so on, it is very useful You will see that you have all your desired data available and you can work with it.
If you want to resize some images in accordance with an image cache setting, you can use it within the template itself:
theme ('imagecache ',' Your_preset ', $ field_fromcck [0] [' file path ']);
Assume that you have a CCK field that is named fromcck
.