I'd like to achieve the following content structure but no template I know fits it.
Can you advice me from what Template to start modifying? I thought of "Category Blog".
I'm currently planning to integrate the years by adding categories that contain categories with caption/description containig articles I want to be shown completely in this view.
In addition I'd feel grateful to you providing me sources to learn more about how to get the data I need (categories with description, articles with headline and content).
I until now just did CSS adjustments for Joomla based websites and therefore don't know that much about how to actually reviece data from the DB.
PHP and MySQL aren't a problem though.
A bit fuzzy maybe because I don't exactly know where to start but I'm hoping the best.
Thanks a lot :)
Related
I'm trying to figure out a way to render a resource with a specific tpl based on a template variable(tv) value. here is my use case:
I have setup a modx installation for a basic site with a homepage and a blog (I used the articles add-on). I want to display blog posts on the home page, outside of the articles container. From my experience the easiest way to do this is with getResource. However for this specific project I would like to change the tpl of the getResources results based on whatever the tv value is for each result.
The template variable can be looked at as a "post type". if you choose "text" it would have tplA, if you choose "multimedia" it would have tplB etc...
now based on my research you would use the properties 'tplCondition' and 'conditionalTpls' to achieve this in your getResources call, something like this:
[[getResources?
&tplCondition=`tv.blogPostType`
&conditionalTpls=`{"1":"tplA","2":"tplB","3":"tplC"}`
&tpl=`defaultTpl`
]]
The problem is, this does not seem to work with template variables :( it even says it only uses resource fields in the documentation.....which is a REAL bummer, as i have no idea to pull this off otherwise. Based on my limited knowledge, you can maybe create a snippet or something that does this, But i have no clue.
Does anyone have an elegant solution to this problem?
to sum up what im trying to do, again:
-assign a "post type" to blog posts in my articles container via template variable.
-use the template variable value to set a specific tpl based on that value.
any help is highly appreciated. thanks
EDIT: okay I got a reply on the forums and have come across a"solution" to this.
you can accomplish this with css. in the tpl, you do something like:
<article class="[[+tv.post-type]]">....</article>
this will output the post type selected in the tv as the actual element class used, and you can then use css to give the output different looks based on the tv. its actually so simple im a little embarrased i didnt see it before. In my situation it 100% solves my problem, however if you needed to chasnge html im guessing javascript would need to be involved or another method with php. just leaving this here in case someone needs it!
If you need to do major changes to the html you could still probably solve it with css if you have a nice markup. However if thats not enough i would solve it by using one tpl for the getresources call, and letting that tpl handle the switching. If you could have your TV output the value symbolize the name of the tpl that should be used in each case, your tpl would only need this:
[[$[[+tv.yourtv]]]]
Your tv will be evaluated first, and then it will be processed as a chunk. That way you dont need a nasty switch or if-clause.
This is assumin you want toally different tpls, and not just need to change some small part of the standard tpl, in that case you could still use this tecnique though!
Conditional templates seem to work fine with pdoResources (part of pdoTools). (I have to put "tv." in front of the TV in the tplCondition but not in the other TVs)
James is correct.
[[pdoResources?
&includeTVs=`blogPostType`
&tplCondition=`tv.blogPostType`
&conditionalTpls=`{"1":"tplA","2":"tplB","3":"tplC"}`
&tpl=`defaultTpl`
]]
Im trying to make a web in joomla kind of:
http://www.cuevana.tv/#!/peliculas
It will not be about, films nor online streaming, but im thinking in have "objects".
I have checked that site and i notice that the films are kind of objects, they have:
Genre, Language, Actors, Title, Category etc etc.
In joomla i have the option to make only articles, but with articles i can't have attributes.
Any idea on how can i achieve this ?
I'm not sure what you mean exactly but with Joomla 3.1 you can assign tags. I'm not sure though what you mean by saying that articles don't have titles... articles and all content items in the core have titles, images, links, keywords, teaser text, and in 3.1 tags.
I'm assuming you want to be able to search based on these attributes so really I think nested tags are going to help you and you may want to use plugins to extend the tags api. Also Smart Search maps will possibly be helpful.
What you need is a 3rd party component to extend Joomla and provide CCK capabilities.
Look for Zoo, K2, SobiPro, Fabrik.
I'm creating a small car dealership website, and on my inventory page I need to be able to list all the cars I have , and a way to narrow them down.
Whats the best what to achieve this? The simpler way the better even if i need to do abit more work.
I thought each car entry has to be an element with specific name and than I would use the navigation to list the element by selected name. But im not sure where to start with this. Cant seem to find any good tutorial. However been what it is i feel like there should be tons of solution for my problem..
Basically each element needs to have title , description and a picture. Please point me in the right direction, a database perhaps? I could do abit of mysql but nothing pass the beginner levels
well, i will suggest you to use any shopping cart or any e-commerce solution which will be available free of cost and you can make tweaks when you get the knowledge about these stuff.
i will suggest you to use "Wordpress + WP-E-Commerce" you just need to install the wordpress, you can create your own theme or can find a good theme while wp-ecommerce is also having free version which will solve your all problems you stated above.
feel free to ask me if you have any other question
i've a Drupal theory/strategy related question. First i want to say that i'm very new to the drupalling world, so this question can be quiet stupid. I'm trying to develop/make a part of a site that has the following structure:
(level one) virtual_exhibitions: shows an overview of exhibition categories.
(level two) themes, places, people: which is an exhibition category.
(level three) love, belgium, napoleon: which are exhibitions, every one of there will give a list of photos related to the exhibition subject.
now i created a new node-type: virtual-exhibition.
and i created a vocabulary: exhibition-categories.
now to create the structure i used views:
one view to list all the nodes from a selected category with a link to the node.
one view to list all the categories.
now i was wondering if this is the drupal way to do this, or are there better alternatives. This is working, but i'm not sure if this is the right way.
Another question related to this, i want to use clean urls:
virtual_exhibitions
virtual_exhibitions/themes, virtual_exhibitions/places, ...
virtual_exhibitions/themes/love, virtual_exhibitions/places/belgium, ...
The first one is easy, i can configure this in the views UI. The second one is a bit harder because the categories can have special characters like a ' or a , etc. So i need a raw version (as can be used in path auto) in fact it would be best that my default link of the vocabulary term redirects to this view. because the url of the vocabulary term is very easy to configure using path auto and then i can just use the vocabulary term url in stead of always building it manually.
The reason why i'm using a view for the second level is because it needs a custom layout and as far as i know it isn't possible to style a vocabulary-term of a specific vocabulary. When you style it this style will be used for all the vocabulary-terms.
i hope my description is a bit clear and that somebody can give me some remarks on how i best do this.
I think you might want to take a look on views arguments.
I'll briefly explain what I'm trying to do:
I need to sort a set of content-types within a paginated page. Also I need to add filtering to the page, for example each content-type should have a set of tags and the filter needs to filter through these tags.
This is a basic mockup of what this page consists of:
I'm finding it quite hard figuring out the best way to do it, and if this can be done.
Help would be very much appreciated!!
If by tags you mean taxonomy, you just add a taxonomy filter in the view and expose it. What you need to achieve is simple and generic. So a correct answer is ti suggest you go through Views Documentation http://views-help.doc.logrus.com/