title

Joomla 3 get the menu title

删除回忆录丶 提交于 2019-12-07 23:14:22
问题 I'm using multiple menus on one page. In multiple divs I'm showing a menu (menu1 to menu6). For templating purposes I would like to get the menu title of each menu to show on top. I'm not managing to get the title from the menu. I found this is the way to get the menu items. <?php $menu = $app->getMenu(); $menu_items = $menu->getItems('menutype', 'menu1'); var_dump ($menu_items); ?> Couldn't be so hard but can't find the right syntax. Who could help me? Thanks in advance, Wims 回答1: Also you

undefined method `full_title' [duplicate]

不想你离开。 提交于 2019-12-07 15:07:07
问题 This question already has an answer here : M Hartl's Ruby on Rails Tutorial Chapter 5 custom title on home page (1 answer) Closed 5 years ago . I am getting the following error: undefined method `full_title' On this line: <title><%= full_title(yield(:title)) %></title> On my layouts file: <!DOCTYPE html> <html> <head> <title><%= full_title(yield(:title)) %></title> <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %> <%= javascript_include_tag "application",

WordPress get_posts by title like

无人久伴 提交于 2019-12-07 14:10:21
问题 I am trying to create a small search-function for WordPress. An AJAX call should get all posts where the title is like %quote% . Is there a possibility to make this happen inside the get_posts() function? Don't get me wrong. The ajax works fine. I have the ajax function in my functions.php and I receive the posts. It's just the "where title like" part where I couldn't find a solution. 回答1: No, but you can create a custom loop. Check this. EDIT: $args = array('s' => 'keyword'); $the_query =

How to resize callout bubble after resetting title/subtitle

a 夏天 提交于 2019-12-07 12:27:12
问题 I created an MKAnnotation name PushPin which has a title and subtitle. I want to be able to dynamically change the title at a later time. I'm close so I'd rather not have to make a whole new AnnotationView, but if I have to I guess that's ok too. My problem is that, once I change the text for the title, the window does not resize and some text might get cut off depending on how big the title originally was. 1) Is there an event I can trigger to resize the callout bubble window again? 2) Also,

R - How to add legend title to levelplot saved to a variable?

回眸只為那壹抹淺笑 提交于 2019-12-07 12:16:39
问题 I would like to add the title for a legend in a levelplot graph saved to a variable. For example, this code works: library(lattice) library(grid) x = 1:10 y = rep(x,rep(10,10)) x = rep(x,rep(10)) z = x+y levelplot(z~x*y, colorkey=list(labels=list(cex=1,font=2,col="brown"),height=1,width=1.4),main=list('b',side=1,line=0.5)) trellis.focus("legend", side="right", clipp.off=TRUE, highlight=FALSE) grid.text(expression(m^3/m^3), 0.2, 0, hjust=0.5, vjust=1) trellis.unfocus() But this code, where the

“alt” attribute on images and “title” attribute on links required in HTML5?

拈花ヽ惹草 提交于 2019-12-07 09:37:00
问题 Me and other developers at our company are struggling with "title" and "alt" attributes. In the past, we added "title"-Tags to all links for SEO purposes (although some of them were annoing talking about usability) and "alt"-Tags on every image on the site, because HTML4 spec said so. Are "title" and "alt"-Tags still required ? If they're not required, do they still have effects on SEO? 回答1: Check the HTML specification to see what is/isn’t required: a element: The (global) title attribute is

How does PhpQuery work? Trying to get the value of <title> tag

不羁岁月 提交于 2019-12-07 09:30:04
问题 I'm new to phpQuery. I need to achieve the simple task of getting the content of the HTML TITLE tag of a webpage. In this case I'm trying to get the title content of "Yahoo!" that should be "Yahoo!". I'm doing this with phpQuery, but it is now working // Testing phpQuery $result = phpQuery::newDocumentFile($scraps['Scrap_yahoo']->getPage('http://www.yahoo.com','','off')) ->find('title'); echo $result->text(); Can someone give me a clue on how to achieve this? Best Regards, 回答1: I think the

Title Attribute on Disabled Elements in Firefox

南笙酒味 提交于 2019-12-07 08:36:59
问题 I am building a very dynamic web-based application using a lot of Javascript to handle user events. I am in the process of making things a little more usable and came across a problem that I've never had before. I am using jQuery, so factor that in to your answers. Thanks in advance. I have a set of button elements defined as: <input type="button" title="My 'useful' text here." disabled="disabled" /> I have these buttons with a default style of: div#option_buttons input { cursor: help; } Then

Auto Refresh document title?

不羁的心 提交于 2019-12-07 08:20:30
问题 I have tried many ways to have the page title automatically update every 3 seconds so the title can display how many unread messages they have. Here is what I have tried: setInterval(function() { document.title = "<?php echo $inboxcc; ?>"; }, 3000); and $(function() { setInterval(function() { $(this).attr("title", "<?php echo $inboxcc; ?>"); }, 3000); }); But none of them work. 回答1: This approach won't work. Your PHP statement will execute once on the server-side, so no matter what you do in

Changing font in a two line figure title

末鹿安然 提交于 2019-12-07 01:03:19
问题 I want to write my figure title in two lines in a way that I can change the text properties of both lines separately. I found: title(['\bf{first line}' char(10) '\rm{second line}']) which makes the first line bold. But how can I change the font size for first line? 回答1: title(['\fontsize{20pt}\bf{first line}' char(10) '\fontsize{10pt}\rm{second line}']) I found this syntax hidden in the docs: http://www.mathworks.com/help/matlab/creating_plots/adding-text-annotations-to-graphs.html#f0-19466