Jump to content

skru09

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

skru09's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, Im currently working on Drupal5 and am having some problems using the views_build_view api to build my view. I want to make use of the exposed filter value in the field template of my view. So i thought of sending it using the api arguments, but I am not able to understand the various arguments mentioned in the drupal handbook. Also Im not sure how to access those arguments in the field template. Any guidance in this regard will be appreciated. Thanks.
  2. Hi, I need to display specific node fields based on the exposed filter value.Usually we make use of teaser view templates to display certain display fields based on page and block. In my case when filters nodes by using exposed filter say filterterm1 then the view should display specific node fields say nodefield2 on the condition that nodefield1 = filterterm1 else it should display nodefield3. Can this be done? I tried getting the exposed value using the get_exposed_input() and _get inside the field template but that didnt work for me. Any guidance on this will be appreciated. Thanks
  3. @f1fan - thanks for pointing that out but earlier i had tried to use the class and the rules were not being applied.hence i was using the / as someone pointed out that its the way to do it. @ignace - the browser creates a internal document tree representing all the HTML elements in the page to display.Then it reads the css rules and starts applying them to the element/s that match the selector specified in the rule. You can read more on this at http://webworksconsultant.com/frontend/what-is-wrong-with-universal-css-selector/. So i placed my class at the end of the img tag. Its working now. Thanks!
  4. Hi I am trying to reset the width of a selected image to 99px in my php page. So i used the css * universal rule to reset the value. Please find below the code snippet: <style type = "text/css"> .faculty-image { max-width: 99px; border: 1px solid #999; } * html .faculty-image { width: 99px; } </style> <?php //php code which retrieves the images echo '<td valign="top"> <img class="/faculty-image/" src="'.$test.'"/></td>'; ?> The above code did not reset the width.Hence i made changes like: * img { width: 99px; } But this is resetting all the images on the page. Please help me in this. I dont know how to apply the reset to that specific image which im echoing. Thanks in advance.
  5. How do i go about doing that?? Sorry I am not very good in html
  6. Hi Thanks for the link. I did go through the link but i think the function will resize the image proportionately. But i need all the images to be resized to one particular size. Please correct my understanding if I am wrong. Thanks.
  7. Hi, I have php page wherein I am retrieving images from the database and displaying them. The images are of different sizes hence i want to resize the images without them being distorted. I used the following code: <style type = "text/css"> .faculty-image { max-width: 99px; border: 1px solid #999; } * html .faculty-image { width: 99px; height: 100px} </style> <?php //connected to the db and retrieved the images $rep='<class = "/faculty-image/" />'; $image=str_replace("/>",$rep,$img); //have done the above as the image field retrieved is of the form <img src="/abc.jpg" title="abc" alt="abc" height="235" width="235" /> echo $image; ?> But the images are not displayed in an uniform manner. Please guide me on this.Thanks
  8. Thank you very much for the quick reply!
  9. Hi, I am trying to use a image class defined within a php page. I dont think im able to make use of it. Please find below the code i have written: <style type = "text/css"> .faculty-image { max-width: 99px; border: 1px solid #999; } * html .faculty-image { width: 99px; } </style> <?php $rep = '<img class ="faculty-image"' .$image .'</img>' ; ehco $rep; ?> Any guidance on this matter will be appreciated. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.