Problem with ? and =

tinem - September 18, 2009 - 08:13
Project:Custom Links
Version:6.x-1.4
Component:Code
Category:support request
Priority:normal
Assigned:tinem
Status:closed
Description

Hope I have made this issue correct - I'm not used to this yet.

http://www.tinemuller.dk/drupal/div/custom_links.gif

It looks like this http://www.tinemuller.dk/drupal/Copenhagen_map%3Fnid%3D1149 - and it should be http://www.tinemuller.dk/drupal/Copenhagen_map?nid=1149

Is there something to do about this, please?
%3F should be ?
%3D should be =

/Tine

#1

tinem - September 18, 2009 - 09:37

I have found this discussion http://drupal.org/node/212267 and a solution to the problem but as a newbie I don't know enough to make this example work for my problem. Can someone help with what code to write, please?

#2

tinem - September 18, 2009 - 10:41

Have also found this discussion http://drupal.org/node/81447 - Could it be that the problems is that in the CORE common.inc the code is wrong? This is what I have in this file:

function drupal_urlencode($text) {
  if (variable_get('clean_url', '0')) {
    return str_replace(array('%2F', '%26', '%23', '//'),
                       array('/', '%2526', '%2523', '/%252F'),
                       rawurlencode($text));
  }
  else {
    return str_replace('%2F', '/', rawurlencode($text));
  }
}

#3

tinem - September 18, 2009 - 11:44

I couldn't wait till I get some answer from you so I tried changing some of the code in common.inc but now I get this error after I changed the code back to what it was before. :-(

Fatal error: Call to undefined function drupal_final_markup() in /home/www/tinemuller.dk/drupal/includes/theme.inc on line 692

I don't understand why there is an error now that I uploaded the file that were OK before?

#4

tinem - September 19, 2009 - 11:57

Has no one a suggestion for me? Is the problem Drupal core or this module? Just say "something" so I know I'm not alone out there and you have read my message but can't help. :-(

I have been told that it's NOT an good idea to change common.inc so where and what shall I then change?

#5

alexanderpas - September 19, 2009 - 12:22
Category:bug report» support request
Priority:critical» normal

Notice the documentation below the Link and querystring fields!

You are doing it wrong!

You put Copenhagen_map?nid=[nid] in the link field.

However, you should be putting
only Copenhagen_map in the link field
and nid=[nid] in the querystring field

#6

tinem - September 19, 2009 - 13:25

THANK YOU SO MUCH - you have saved my day. :-)

Now that I have your attention I hope it's OK to ask for another question. Why is TESTMAP on the same line as Comments http://www.tinemuller.dk/drupal/view/list/copenhagen? And why can't it be seen in RSS http://www.tinemuller.dk/drupal/list_copenhagen_feed?

#7

alexanderpas - September 19, 2009 - 13:34
Status:active» fixed

sorry, can't help with that.

#8

chrisshattuck - September 21, 2009 - 17:43

Hi Tine!

So, looks like the the TESTMAP link is being added to the links section of the node. Perhaps you're using a module, or hook_link in order to add it in? If you just want it on a separate line, you can use CSS to make the

  • tags display as block instead of inline. If you wanted to move the link to a different place in the teaser, then you would need to use a template file and a preprocessing function for that node type.
  • Does that make sense?

    Cheers,
    Chris

    Build a Module.com - The definitive video guide to Drupal development

    #9

    tinem - September 23, 2009 - 11:17

    I'm surprised that the links comes beside the comments and it looks more strange now when I have made another one and it's still on the same level.

    I tried using Custom links because it maybe was a better way then what I describe here http://drupal.org/node/570588. Can you help me fix this problem with some code, please?

    When you look at http://www.tinemuller.dk/drupal/view/browse/copenhagen you will see dynamic links for all 4 links.

    Then afterwards I can decide what is the best to use. Now it's only on one Content type called Copenhagen but in the future there will be 98 different content types - I think - because I'm going to make a map like this http://www.tinemuller.dk/drupal/Copenhagen_map for every 98 cities for themself to write and update the info on their maps and then I think I will join all these 98 cities in ONE map like this http://www.tinemuller.dk/drupal/Copenhagen_map_radius where people can search for radius.

    It's made so that when they make a change or a new toilet it will be updated on both maps at the same time. But still have a lot to think about and learn to make this project the best way.

    But still need a way to make RSS ITEM from RSS View show what I want and also the dynamic links that's why I ask'ed for a video on you GREAT site http://buildamodule.com/ - Vote for future videos - How to change RSS view with RSS Item hook_nodeapi

    Can you follow me what I'm trying to do? :-)

    /Tine

    #10

    System Message - October 7, 2009 - 11:20
    Status:fixed» closed

    Automatically closed -- issue fixed for 2 weeks with no activity.

     
     

    Drupal is a registered trademark of Dries Buytaert.