This forum is for assistance with theme development.

Content type

I am not sure whether this problem must be discussed in Theme development or elsewhere. However, let me explain the case.
I am new to drupal, and was trying to develop a site where I wish to accept articles from my site users. For the purpose I have created a new content type with title, tags (term reference), Summary (Text Area Multiple Rows), and Body (Long Text and Summary). What I need to do is:
- Accept article title, article summary, and article body from the users
- Display only the text from Summary in the teaser

Put views results on same line.

I have read all of the posts and am now familiar with editing the content of a view through disabling fields and rewriting output. That being said...

I am having problems finding information on how to put the view results next to each other instead of a new line for each result.

I am trying to make a 'tags' block. I have:

Tag 1

Tag 2

Tag 3

I want:

Tag 1 Tag 2 Tag 3

Any help would be greatly appreciated!

Theming Isotope Grid

Hi,

I am currently using the 5pika responsive theme. This post is focused on the portfolio section of the theme.

http://www.inspiro-media.com/5pika/?q=portfolio/four

I love the look of the grid, and want to keep it mostly the same. However, when I mouse over one of the pictures, the title of the node pops up.

This is fine on a desktop but on a mobile device you have to tap each one to get the name of the node to come up. I do not like it and want all of the pictures in the grid to have the text title of the node overlaid on the picture so that when you bring up the portfolio you have the names of each node, without having to hover or click.

Can anyone help point me in the right direction? I suspect that this theming happens in the view template, which looks like this:

<style>

	#sidebar {display:none;} #content {width:100%;}

<?php if(theme_get_setting('portfolio-columns', 'pika') == 5){

.isotope-element, .ch-item { width: 392px; height: 140px;}
}
if(theme_get_setting('portfolio-columns', 'pika') == 4){
.isotope-element, .ch-item { width: 240px; height: 160px;}
}
if(theme_get_setting('portfolio-columns', 'pika') == 3){
.isotope-element, .ch-item { width: 320px; height: 200px;}
}
if(theme_get_setting('portfolio-columns', 'pika') == 2){

Stacking a Responsive Menu

Hey,

I am currently using the 5pika responsive theme for my site:

The menu is already responsive, but I would like to tweak it.

On a mobile device, the menu will condense and you can click it and it brings up a drop down menu that allows me to select the area of the site I want to go to.

In addition, I would like it to stack the menu so that when I bring up the front page on a mobile device, it brings up the menu options.

View field render : All taxonomy terms - expose tid as data- attribute

The scenario is that I have a View that shows a bunch of fields including the field 'All taxonomy terms' that are attached to the content.

I would like the output of each term to be an unordered list item (which is easy to do in the View settings), but I also want to set each list item to have a data-tid that includes the tid for the term. So the output would be of the form:
<li data-id="tid-1">My Term Label for ID 1</li>
<li data-id="tid-2">My Term Label for ID 2</li>
etc.

I can set a bunch of options in the Views settings for the output, but not what I want. I was looking at Views handler but could not work out how to get this done. Also, I would have thought a theme hook or theme template would work but not sure how.

SOLVED

Table of Contents in Custom Content Type

I need help!
There is a content type, 6 fields (3 Long text, image, and 2 links).
I want to create a table of contents with anchors on the label.
TOC filter module and Table of Contents module allow do this by using body of the text field (h2 tags). I have three of these fields.
I created the field--mycontent.tpl.php, write print render($label), but...
The label is displayed. Only here in the form:
label1
label1
items1

label2
label2
items2
.....
My field template:

Pages

Subscribe with RSS Subscribe to RSS - Theme development