I'm actually absolutely new to Typo3 and need some help. I've got a site (6.1.5) with a main menu - but none of the links has a title:
<li>
page1
</li>
<li>
page2
</li>
In the backend I can use "Page Title", but nothing appears in the frontend.
Thanks in advance!
Dublay
We need to know more to help!
Have a look at the template section in the BE Menu. Look if you find there an Object named TMENU. Is so, this would be your solution:
ATagParams = title="{field:abstract // field:subtitle // field:title}"
ATagParams.insertData = 1
Like that first the abstract is taken, if empty the subtitle, if empty the title.
Have a look here: http://www.serious-cool.de/webdesign/typo3/dynamische-linktitel-im-menue/
I you cannot find anything alike, your template is propably rendered with fluid. That means you have somewhere in your system a navigation.html file you need to find and modify.
Since Typo3 is very dynamically developing there are more then one possibility to render a menu....
Related
I am using the ThemeMachine and also trying the CustomThemeMachne themes - they reveal I should have an aside1, 2, and 3 .. I was under the impression that Aside was Aside of the main content and not underneath the main content; and that is where they show up now - right under the main content. What I would like to have is my Aside1 to the Left Side of the Entire Page for various content such as article links and Adverts and also an Aside on the Right side of the Entire Page. See the picture below where RED Rectangle is the page menu / main content / etc , the Blue rectangles are the Aside 1 and Aside 3
I am having some difficulty in figuring out how to do that - since I am really new to Orchard and my skill sets with MVC model are limited.
I would like some guidance or an example of exactly how I can accomplish this with either of these two themes after an example or really good info I feel I will be able to figure out what I need to do.
The rectangles are called zones. These are defined in the Theme.txt. Search for a line that starts with Zones:, it states each zone in a simple comma separated list, for example:
Zones: Navigation, Content, UserDisplayName, ...
The actual render order of the zones is defined by HTML markup in the Layout.cshtml, for example:
#{
Func<dynamic, dynamic> Zone = x => Display(x); // Zone as an alias for Display to help make it obvious when we're displaying zones
}
<div>
<div>
You are logged in as #Zone(New.UserDisplayName())
</div>
<nav>
#Zone(Model.Navigation)
</nav>
<div>
#Zone(Model.Content)
</div>
</div>
This is all well documented at http://docs.orchardproject.net/en/latest/Documentation/Anatomy-of-a-theme/
On my Umbraco website, I have the section which shows latest News. Each news is one article.
Unfortunately, I can't add any attachments to any News article in back-end so users could see that attachment(s) on front-end of website and download them if they want to. This is how I it should look like
https://imagizer.imageshack.us/v2/895x383q90/826/cozp.jpg
Is this possible to do? While I was using Joomla CMS it was very easy by installing additional module/component which took me only 15 minutes to set.
Any help is appreciated and many thanks in advance for prompt replies!
MC2012
The solution is fairly simple:
Add the attachments to a folder in the 'Media' section
Add a field to the document type that the page uses called 'attachments' and use the datatype 'Multi-node Picker'
On the page content pick the attachments you are interested in
Render the list of attachments (http://our.umbraco.org/projects/backoffice-extensions/ucomponents/questionssuggestions/26638-Multi-Node-Tree-Picker-help-with-example-code-(in-Razor))
using something like:
<article>
#if(Model.HasValue("attachments")){
<ul>
#foreach(var item in Model.attachments){
var node = Library.NodeById(item.InnerText);
<li>
#node.Name
</li>
}
</ul>
}
</article>
Thank you very much for fast answer. However, in the meantime I have find solution. Here is the link
http://our.umbraco.org/forum/using/ui-questions/47616-Adding-attachments-to-articles-in-back-end-and-then-showing-them-in-front-end-CMS
I hope someone else will have some use of it because it is great solution.
BR,
MC2012
I am created a demo of autocomplete using http://jqueryui.com/demos/autocomplete/
plugin.
Now the suggested list which appears on pressing key is
<ul>
<li>
Suggestion
</li>
</ul>
I have to edit the list like :
<ul>
<li>
<a>Suggestion</a>
<br />
<a>data1</a><a>data2</a>
</li>
</ul>
how can I do this? I seen script for autocomplete but not found any hint.
You can configure the autocomplete with the formatItem, and the parse properties of the configuration object.
This question has been answered here:
JQuery AutoComplete results format?
Looks like you want to add some HTML to the result. If that is correct, the jquery ui docs point to a resource (at the bottom of the docs page):
The label is always treated as text, if you want the label to be treated as html you can use Scott González' html extension. The demos all focus on different variations of the source-option - look for the one that matches your use case, and take a look at the code.
Or, you can add custom data using the open event of the autocomplete. See example here:
http://www.jensbits.com/2011/03/03/jquery-autocomplete-with-html-in-dropdown-selection-menu/
I'm still a beginner at web development. It's not my profession. So go easy.
I started building a rails app today, and realized it would make my application so much better if I could get certain links to display in a separate div instead of a new page, or refreshing the entire page. I'm not quite sure how to search for this, and I keep chasing red herrings with google.
Basically, I have a list in a div on the left side of the page, and when one item from that list is clicked, it should appear in the right div. (Nothing else on the page need be changed)
That's really as simple as it is. Do I need to use Javascript for this? Can I get away with the rails js defaults, or should I be using JQuery?
Is there a way to do this without javascript? I really just need a push in the right direction here, I'm tired of not even knowing how to search for this, or what documentation I should be reading.
Like I said, go easy, and you should just go ahead and err to the side of caution, and assume I know nothing. Seriously. :)
Thanks in advance,
-Kevin
(By the way, I'm developing with Rails 3)
Create your views (along with controllers) to be shown inside the div for each item on the left menu. Lets say we have the following structure now:
Item1 (Clicking on it will fetch:
http://myapp.com/item1)
Item2 (Clicking on it will fetch:
http://myapp.com/item2)
and so on...
make sure you only render the html to be put inside your content div. Should not include <head> <body> etc. tags
In your main page you may have your markup like this >
<div id="leftMenu">
Item 1
Item 2
</div>
<div id="content">
Please click on an item on the left menu to load content here
</div>
Finally, add the following Javascript (you'll need jQuery; trust me it's a good decision).
$("#leftMenu a").click(function () {
$("#content").load($(this).attr("href")); //load html from the url and put it in the #content element
return false; //prevent the default href action
});
You will need JavaScript if you want to avoid reloading the page. You can use link_to for links in your lists, and you'll need to use :remote => true to make it send AJAX requests to the server. The server will need to respond appropriately and supply HTML for your div.
link_to documentation is here: http://api.rubyonrails.org/classes/ActionView/Helpers/UrlHelper.html#method-i-link_to (and admittedly it isn't very useful for AJAX functionality).
The last post in this thread shows one possible solution you could use.
I need to embed a flash movie into one of the pages in my Ruby on Rails app. I've put the Flash movie into the public folder, but I'm not sure how to reference it from my page, which is located at views/controller_name/page1.html.erb. How do I do this?
Thanks for reading.
link_to, eg (assuming it's in the public folder):
<%= link_to "My Hot Link Test", "/flashmovie.swf" %>
The leading "/" isn't strictly necessary, I think.
Sorry, missed the bit where you wanted to embed it, not link to it. Contrary to the title of this question. ;-) This is one easy way:
http://agilewebdevelopment.com/plugins/flashobject
we have done this, But we have just use plan html
say your flash banner is at
/public/flash/ folder
this is nothing but plain html
If someone have a better option please let me know too
cheers
sameera