I need help with views contextual filters & Relationships in Drupal 7 CMS Experts

deejaywillzz

JF-Expert Member
Joined
Mar 11, 2014
Posts
637
Reaction score
224
Hi there,


I have two views one is clients and another is projects but there relation is a field named client name (on drupal 7)


+ clients
- client_name (text)
- client_logo (image)


+ projects
- client_name (node reference)
- project_title (text)
- project_category (list)


Therefore node projects gets its client name list from node clients content.


I have succeeded to create a view with a contextual filter by Node ID and relationship using client_name (node reference) and it works very fine when I type manually on the browser address
(e.g http://localhost/client-projects/17) this display all projects done for client with node id 17.


Now my problem is on the view I created for clients, I have only added field client logo because I only want logos to be displayed but it does not give me option to link each client a link to its projects instead it gives me image link to content or file
 
I hope you get the help you are looking for, but i still don't understand why you are using drupal
 
I hope you get the help you are looking for, but i still don't understand why you are using drupal
what is your suggestion? Please tell us. what he is supposed to use instead of Drupal
 
Paje I tried Drupal right when i was starting web development, CCK was a very good thing but the fact that you had to know a bit of php drove me off, then i came across Wordpress, this was even worse because back then it was really a blog, you either had pages or posts or custom fields, (they added custom post types later, by then i had dropped it as well), but still you need to know php to use Wordpress as a CMS's because deep down its still a blog to its core.

Then i found my perfect CMS, ExpressionEngine, It is not OpenSource (you have to pay 300USD license fee per site but you can charge that to the client) and trust me, the money you pay is worth it. You can create any kind of website / app without touching any php code, you just need to be a good designer and the best thing about it is you don't have themes so your website will never look like another website because you design everything yourself.

Why is it a great cms?
  1. Custom content types can be created by a mouse click and displaying them on your template will not require you to write any php code
  2. Relationships are built in, if you need to create related contents, just create a content of type relationship
  3. You can create an API without any php code, If you need your templates to return jSON data, you got it in ExpressionEngine
  4. Memberships are built in
  5. You can extend it with add-ons (commercial & free addons are available)
  6. Great support because it is a commercial product, paid support staff are always there to help
  7. Unlike other open source php projects, it was created on top of codeigniter, a great framework on its day that was created on solid programming principles ( OOP, MVC etc)
  8. Secure and will definitely add speed to your work.

An alternative CMS is CraftCMS, this is another gem of a cms, the guy who created it has several ExpressionEngine's top selling add-ons, in short Craft was inspired by ExpressionEngine and it has one of the most beautifully designed backend you'll ever see.

There's a lot of places you can learn how to use ExpressionEngine and Craft, if you need help just drop me an email and i will help.

All the top web design agencies in the world either use ExpressionEngine or Craft. By the way i am not getting paid to say all this but i have been around long enough and used most of those CMSs especially for all the small projects we do at our lab so i'm definitely qualified to give opinions on this topic.
 
Last edited by a moderator:

Dont get me wrong on this, the reason why I use drupal is I'm a professional programmer and I like coding. Kama nikitaka kutumia CMS ambazo hazita involve kufanya coding inamaana hela yangu ya bachelor degree na masters went into waste imetumbukia chooni.

Lakini usichukulie hii kama kukukatisha tamaa, unaweza kutumia CMS yoyote unayoona itakurahisishia maisha cha msingi ni kuingiza hela (mpunga)
 
I hope you get the help you are looking for, but i still don't understand why you are using drupal

Dont get me wrong on this, the reason why I use drupal is I'm a professional programmer and I like coding. Kama nikitaka kutumia CMS ambazo hazita involve kufanya coding inamaana hela yangu ya bachelor degree na masters went into waste imetumbukia chooni.

Lakini usichukulie hii kama kukukatisha tamaa, unaweza kutumia CMS yoyote unayoona itakurahisishia maisha cha msingi ni kuingiza hela (mpunga)
 
deejaywillzz Nope, wala haunikatishi tamaa, i was just trying to help, na kama you are a professional programmer why don't you just write that app you are creating from scratch? Don't you think a cms is limiting you?
 
Last edited by a moderator:
deejaywillzz Nope, wala haunikatishi tamaa, i was just trying to help, na kama you are a professional programmer why don't you just write that app you are creating from scratch? Don't you think a cms is limiting you?

I agree with you your talking sense, the problem is the client gave me window of options thats why nikaona ni share na wataalam kuliko kuingia kichwa kichwa.

Tatengeneza website ya University of Fort Hare, South Africa (http://www.ufh.ac.za/en/) nimeweka jina langu kwenye source code (Wilbard Mtei). Sasa bado wanafanya changes everyday kwahiyo huwa nabadilisha CSS na php code kutokana na mabadiliko wanayo yafanya.

Nashukuru kwa mawazo yako. umefungua option zangu. thank you!!!
 

A real programmer/expert would never buy into this list, WordPress is never the top CMS (i can give u reasons why i say this) unless we are talking the most used.

Remember i used most of these CMSs when i was starting up and my opinion is that eventually you will grow out of them at some point. Having looked at your work (the university site) and your website (Mtei Web Factory) I'd assume that you are just starting up because even the markup Drupal is generating on your views(yeah source code tells a lot about a developer) would make an experienced developer question it.

Anyways i hope you don't take offense from my comments and hope you get the help you are looking for (I'm not sure you are going to get it here though)
 

No offense taken, on the CMS list is not talking about the range, yes its for the mostly used. And the markup you see on the source code I left it on purpose because of the Terms and conditions of using Drupal everything has terms and conditions so yes thats one of them otherwise it is very possible to remove and hide all attributes generated between the <head></head> meta tag

About the help, I got some tips from drupal forum and fixed my problem so im on track right now.

For the record here is the list of Organizations using drupal CMS (Including White House & CIA)

The White House

Georgia.gov

Chatham House | The Royal Institute of International Affairs

TNT 50

https://www.techcoastangels.com/

And many more (https://www.drupal.org/case-studies)
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…