I need a way to create a kind of custom table in each Wordpress article. The table has some regular data/text (that remains the same) and some input data/text (that needs to be changed for each post). Under this it needs to have 2/3 tabs that can contain some pictures.
What would be the easiest way to achieve this? Is there a plugin or something I can use to create such a table?
Here is how the table looks like.
Related
a quick question on creating forms. I would like to know how to remove the what seems to be a "locked grid" on my fields when creating a form. In essence, when i create forms, all my fields seem to be linked and when I adjust the length or width of one, they all adjust respectively making it impossible for me to tailor my form to my needs. It seems to me that the only option around this is creating a form from scratch and inserting field by field. There must be a quick way to disactivate this feature once the fields are created within the form.
Thanks,
A
Select the Arrange tab from the Ms Access Ribbon.
Then, when your "locked grid" is selected press:
Am I able to add the following field to a content type, so that each piece of content I create can be conditioned to a page?
Or is there a module to extend Publishing Options, where by it adds all the pages I have created (just like 'Promote to Front Page')?
If not, why is no one doing this? As a new user to Drupal this seems like it would be a handy operation. (I have already tried this module but it doesn't achieve the results I'm after).
If none of these solutions are available, what would be the best alternative way of doing this?
I've posted this question on Stack Exchange for Drupal but I need a quick answer and there seems to be a bigger community here :D
You should use Context. With Context, you'll be able to manage contextual conditions and reactions for your drupal like Regions.
Have you used Views? it is one of the most common used drupal modules. It doesn't extend publishing options directly but it does replace it in a way. You can say by example put a list of al content-types: your_own_Content_type that have the publishing options of promoted to front-page. then sort them by title, date, what ever you like.
you could also create only one view and create multiple blocks out of it. you have to understand the logic of drupal: if you want different blocks on different pages, you have to create the different pages AND different blocks
create the view for one type of content-type and make one block out of it. put this block on the desired page. All your other blocks are made with the same view, just adjust a condition in your view and create a new block out of it. You should also put all your blocks in the same region, and set the to the right pages
here you can find a lot of documentation if you run into any problems... drupal.org/project/views
Views is the best at creating a slideshow of images or any type of data on your site.
Used in combination with nodequeue it might offer near or the full functionality you are trying to achieve (check this out ... and this too) - but I don't understand your question entirely.
By my opinion Views is too complicated task for much simple request.
There is a few ideas for solution:
Easy way - You can create a specific template file or add some if statments to the node.tpl.php(specific tpl better)
For minor changes - Create a new context with "path" filter and "theme html" reaction, than hide the field by the css
Best but complicated(large usages) - create a new "view mode" and implement the display by new "hook_menu".
~ Almog
I am creating a real estate listing website and am confused with modules I might need,
Is there a way, as I'm creating a node and writing a description, to also on the same node creation page to upload pictures, input the address for the google map, and add a snippet for the amenities.
I was thinking of using fields, and make each attribute just php code with variables like $address or $amenities
Then create blocks that would have the required css/javascript in them to just drop the variables into.
This way I can position the different attributes on the page on different columns with the ease of blocks.
Are there any modules that might work better for this?
If you're using Drupal 7, Fields can handle most of what you want. See the "image" type for fields in order to store pictures. For addresses, try http://drupal.org/project/addressfield or the development version of Location. For amenities, you could use the node body or another text field. Then you can look into Drupal theming in order to get the values and position them elsewhere - no need for blocks.
I'm currently working on a Drupal site (I'm fairly new to Drupal) and need to be able to create some blocks of content that appear on multiple pages and remain consistent between those pages. I'll need it so that if I change the content in one place, the change will be reflected in all places it appears.
I've looked around in CCK a bit but can't seem to find a way to accomplish this there. Is there a way to accomplish this?
Thank you!
You can define your own blocks at /admin/build/block/add, just put your content inside a block and then go to "page specific visibility settings" and put the pages, on which the block should appear there.
There are other ways to achieve something like you describe, if the blocks don't do what you need you should provide some more details on what exactly you want to do. Depending on the structure of your site, you could also use a node (set to appear at the top of lists) that is set to appear on those pages.
It would depend of what kind of data you need to display in this block if its static use
/admin/build/block/add
if you intend to fetch some content from your content types use views to create such block and then use "page specific visibility settings".
I'm creating a blog in asp.net mvc for learning purpose so please no answers telling me i should use an open source blogengine. I need to understand how is the blog content going to work. So i have a table called "Blog" with a column called "Content". The "Content" will hold the blog i.e. text and images etc. Now i have the following questions:
What should be the datatype of content.
Is this the correct way of doing it i.e. saving the blog in a record.
What are the contants of this blog i.e. is it html with rich text and image urls and how does it actually work, i.e. where are these image urls be pointing to and how will my application render it.
Thanks.
Though you certainly could make it work with a single table, you probably want to use several tables to store the content. A basic implementation might look like:
One table for the periodical list of blog entries you have with columns for blog ID, perma-link/url, etc
One table for the tags associated with each blog id
One table for the blog entries themselves, consisting of a blog ID, blog body, etc
One table for comments, with blog ID, comment ID, comment body, etc
Everything would be linked together in the tables by the various IDs (blog ID, comment ID, etc) and your engine would load and render the body elements as specified by the ID requested.
Images, attachments, etc would be stored on a fileserver, and the rendered content would have hyperlinks to them.
This is by far a simplistic envisioning of it, and doesnt cover many aspects or issues. For instance, if you plan to store content such as images, etc in your DB you will need to have unique pointers for those, tables for those items and a way to resolve them as part of your MVC framework.
Start simple, and build up from there if you are just learning. Just build each table as you need it and go from there.
Not sure which DB you are using but assume SQL server for this example. You can store your blog content in a field as nvarchar(MAX). i dont see any issues with doing this