I have a site where I have an availability calendar and I need to show it within a tab table, I have it working to show on both the content and then the tab table! How can I remove it from the content but still show it within the table? I have tried hiding it within the 'Manage Display' section of the content type but it removes it from both
<ul class="nav nav-tabs">
<li class="active">Description</li>
<li>Availability</li>
<li>Pricing Information</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="home"><?php if(isset($node->field_cottage_description['und'][0]['value']))
{
print $node->field_cottage_description['und'][0]['value'];
}
?> </div>
<div class="tab-pane" id="profile">
<?php
print $content['field_availability']['#children'] ;
?></div>
<div class="tab-pane" id="messages"><?php if(isset($node->field_price_guide['und'][0]['value']))
{
print $node->field_price_guide['und'][0]['value'];
}
?></div>
</div>
I hope someone can help with my issue! If it's blatantly obvious then don't be afraid to let me know.
The only way to hide it but also keep it able to run is you just close it within the task manager...
if that dont work them you may have to turn it off and back on..
if that dont work them i think you may have to script it to be able to do what you are needing
Related
I am having a quite peculiar problem with bootstrap's modal. It has been functioning normally until I decided that only some parts of my webpage should be called when the user is logged out. So I added these lines of php code :
<div class="tab-content">
<div class="tab-pane active" role="tabpanel" id="tab-1">
<!--FIRST ADDITION : THE IF CLAUSE -->
<?php
if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"]) {
include '2AversPA.php';
}
?>
</div>
<div class="tab-pane" role="tabpanel" id="tab-2">
<!--SECOND ADDITION : THE IF CLAUSE -->
<?php
if (isset($_SESSION["loggedin"]) && $_SESSION["loggedin"]) {
include 'PAvers2A.php';
}
?>
</div>
<div class="tab-pane" role="tabpanel" id="tab-3">
<p>Content for tab 3.</p>
</div>
</div>
Now, what is extremely weird is that. If I add the first "if" in the TAB1 and directly include 'PAvers2A.php' in TAB2 (ie without the second if clause), the modal works normally. The same goes if I add the "if" in the TAB2 and directly include '2AversPA.php' in TAB1.
BUT, if I add the two if clauses together (which is what I want) the modal just doesn't show up. The button still works and calls the element #MyModal but the dialog box just won't appear.
Can anyone help me solve this mystery?
how to give link one page to another page vertical tab using bootstrap.
External link page:
<div class="tt-service-info"><a class="tt-service-title c-h5" href="http://jsrgraphics.com/our-products#finishing">FINISHING EQUIPMENT</a></div>
Destination page:
<li class="tt-nav-tab-item">FINISHING EQUIPMENT</li>
Tab content:
<div class="tab-content">
<div class="tab-pane text-style active" id="finishing">
<h3 class="uppercase yes_border">1 Color Machine </h3>
<p>
<?php echo do_shortcode('[featured_product_categories cats="220" per_cat="6" columns="4"]') ?>
</p>
</div>
Note: I want open particular tab, please help out here
I'm new to the Zend framework and am trying to prevent my application from loading all of the necessary data at once and to wait until a button press. However, I want to be able to toggle between the pages instead of loading a new page. For instance, right now I have
<li>Families</li
This will toggle to the proper page and show the heading that I want it to. However, it will not get the data. I added a second button
<li>Families</li>
This button gets the data, but it redirects to the index tab, not to the #families tab. So I get the proper behavior if I click the second button (which get's the data), then the first button (which moves to the proper tab). How can I combine these into one?
I think you want to doing something like this ?
https://jsfiddle.net/mmfansler/2eTSL/
<ul class="nav nav-tabs tabs-up" id="friends">
<li> Contacts </li>
<li> Friends list</li>
<li>Awaiting request</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="contacts">
</div>
<div class="tab-pane" id="friends_list">
</div>
<div class="tab-pane urlbox span8" id="awaiting_request">
</div>
</div>
With Javascript :
$('[data-toggle="tabajax"]').click(function(e) {
var $this = $(this),
loadurl = $this.attr('href'),
targ = $this.attr('data-target');
$.get(loadurl, function(data) {
$(targ).html(data);
});
$this.tab('show');
return false;
});
I've spent all afternoon trying to figure this out with no success, I wondered if anyone could help?
I have a dropdown menu on my site which is working perfectly. I've duplicated one of the menu options and after I did this it still worked fine, it had a php / SQL query inside but once duplicate it still did what it should.
What I did then was change the SQL and although the query is correct (checked in myphpadmin) all of my results appear out side of the div tag for some reason, its as if the div tag is closing itself.
Here's my code:
'
<li>Brand<!-- Begin 4 columns Item -->
<div class="dropdown_5columns"> <!-- Begin 4 columns container -->
<div id="top"></div>
<div class="col_4">
<h2 style="width:98%;">Choose from the following Brands:</h2>
</div>
<div class="col_1" style="width:190px;">
<?php
$databrand = mysql_query("SELECT DISTINCT(brand), COUNT(*) as Total from `pt_products` where `brand` <>'' group by `brand` limit 5")
or die(mysql_error());
while($infobrand = mysqlfetch_array( $databrand ))
{
print "<li style='width:190px;'>";
print "<a href='/brand'>".$infobrand['brand']." (".$infobrand['Total'].")</a></li>";
}
print "</div>";
?>
<div id="bottom"></div>
</div><!-- End 4 columns container -->
</li>`
I can't seem to figure this one out. All I did was change the SQL Query.
I've tried deleting the duplicate content and starting again, but get the same outcome.
Any help would really be appreciated.
here's the view source data on of my site:
<li>Brand<!-- Begin 4 columns Item -->
<div class="dropdown_5columns" style="position:absolute;"> <!-- Begin 4 columns container -->
<div id="top"></div>
<div class="col_4">
<h2 style="width:98%;">Choose from the following Brands:</h2>
</div>
<div class="col_1" style="width:190px;">
<li style='width:190px;'><a href='/brand'>Balterio (50)</a></li>
<li style='width:190px;'><a href='/brand'>Dale Hardware (24)</a></li>
<li style='width:190px;'><a href='/brand'>EuroSpec Hardware (2)</a></li>
<li style='width:190px;'><a href='/brand'>Everbuild (35)</a></li>
<li style='width:190px;'><a href='/brand'>Jeld Wen (4)</a></li>
</div>
<div id="bottom"></div>
</div><!-- End 4 columns container -->
</li>
You can't tell from below but the first <li style='width:190px;'> and the </div> after the li list are higlighted in red (error) and also the last </li>
Thanks in advance for your help.
You're using <li>, which should be inside a <ul> or <ol>, which you can then put inside a <div> if you need. Alternatively, you can change the <li> to something else, such as another <div>.
Your problem is like when you put a <p> directly inside a table without nesting in <tr><td>.
Im created a custom block, with the below code, but im having some trouble turning the Group Title into an link, that will take the user back to the group at anytime.
Below is the code ive used, I thought active turns it into a link, but perhaps im being stupid.
<div class="active"><h2><?php print $group_title; ?></h2></div>
Below is the full code:
<?php $group_title = og_get_group_context()->title; ?>
<?php $group_nid = og_get_group_context()->nid; ?>
<?php $forum_link = og_forum_get_forum_container($group_nid); ?>
<div class="active"><h2><?php print $group_title; ?></h2></div>
<div class="content"
<div class="item-list">
<ul>
<li class="user-input-link"><a title="Add a new Forum topic"href="/node/add/forum?gids[]=<?php print $group_nid; ?>">Add a new forum topic</a>
</ul>
</div>
</div>
You need to create URL for it to work.
Here is the link to API with more info: http://api.drupal.org/api/drupal/includes--common.inc/function/l/6
<div class="active"><h2><?php print l($group_title, "node/{$group_nid}"); ?></h2></div>
You need to do an anchor tag, like:
<div><h2><?php print $group_title; ?></h2></div>
I don't know how to get the url in Drupal though..