All Questions
2,664 questions
2
votes
1
answer
107
views
How should I use a field in views?
I have a CCK field that I want to use in a view. How can I do it?
4
votes
2
answers
445
views
Image upload & gallery
Is there a way to limit the number of imagefield fields present in a node?
I am using iTweak Upload, which allows to upload an unlimited number of images, but I need something that can limit the ...
2
votes
1
answer
278
views
cck Nodereference for files
I am trying to create a node that has a single file attachment (using CCK filefield), and be able to reference that file by other nodes (possibly more than one node).
The application is such that ...
3
votes
3
answers
2k
views
How do I edit a complex entity via dynamically loaded AJAX-forms?
I have a "profile" entity with a field "education" (to get started). That field contains various input fields that describe the "education". At the moment I have "institution" and "year". I created ...
13
votes
5
answers
2k
views
Entities in Drupal 7
What are Drupal Entities in Drupal 7? I understand that Drupal Commerce built Products as an Entity. I know now there is a core Entity API and an contrib add on for Entity API.
I have a few projects ...
3
votes
1
answer
607
views
How to create a view to display a block of referenced nodes?
I have a node type, called "policy", that has a bunch of CCK fields, including a Node Reference type. This is configured to reference an unlimited number of nodes.
When the nodes are viewed, the ...
2
votes
4
answers
1k
views
Entity API and Contrib Modules
When using the Entity API, is it fairly simple to interact with Taxonomy, Path/Pathauto, XML Sitemap, and Views? If so, what parts of the API should I be looking at?
7
votes
4
answers
7k
views
Customising the first item in a view
As a block on my homepage I'm trying to output:
<ul>
<li><a><img><p>Node 1</p></a></li>
<li><a>Node 2</a></li>
<li>&...
14
votes
4
answers
7k
views
Limit Teaser to display only the first value of a Field
I have a Content Type with an Image Field. This field will typically be populated with 0 to 4 values. By default the teaser for this Content Type outputs all 0 to 4 images. How can I adjust the Teaser ...
5
votes
5
answers
2k
views
CCK Field with two values?
Is there a way to have a CCK Field have two values for one input?
For example, a field called 'Sodium' and two values, '190mg' and '8%'- first being the amount, second being % of daily value.
If not,...
3
votes
3
answers
913
views
Does it make sense to develop a fantasy sports management system by creating or extending entities?
I am considering building a fantasy sports management system with Drupal. The system will need content, so that's taken care of with the standard Drupal system. However, does it make sense (or even ...
1
vote
3
answers
934
views
Customising field container
I've created a cck field formatter. The field outputs uploads from filefield into embedded iframes that link to google docs for display. It currently outputs:
<div class="field field-type-...
7
votes
5
answers
784
views
How might I create a "step-by-step process" content type?
I'm thinking about creating a process manual for an intranet. Most (all?) of the processes have a very clear order, although the actual order may change from time to time. The plan is to have the ...
5
votes
2
answers
454
views
Field API versus custom code
If I need to add custom fields only to user profiles, is it better to create a module that uses the field API, or a module that uses its own code to show the custom fields at a custom URL and to save ...