ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Drop down with pre-determined images

March 01, 2011 4:13pm

Subscribe [4]
  • #1 / Mar 01, 2011 4:13pm

    cfp700

    89 posts

    We run a statebased news website, and all of our articles pertain to any of our 100 counties here in the state.

    We would like to have each article have a stand alone graphic showing the location of that county.

    If we preloaded all the graphics to the server, is there a function that would serve as a drop down while populating the article? So instead of copy/pasting the code for each county, the graphic could be chosen from a drop-down box.

    Thanks in advance.

  • #2 / Mar 01, 2011 5:30pm

    Mark Bowen

    12637 posts

    Take a look at something like MX Universal Editor (there are other offerings too but I think you’ll like this one as it can do what you want and a whole lot more in the process too 😉 ).

    You will be able to set it up so that people can click a button and then it will show them all the images in a certain folder and then they can click on the image they need and it will then be ‘attached’ to that entry.

    Hope that helps a bit.

    Best wishes,

    Mark

  • #3 / Mar 02, 2011 11:37am

    Sue Crocker

    26054 posts

    Thanks for the assist, Mark.

    cpf700, does Mark’s advice help?

  • #4 / Mar 02, 2011 1:15pm

    cfp700

    89 posts

    I have downloaded and unzipped the files, and uploaded to my server.

    Instructions say “◦Enable MX UniEditor in the Fieldtypes Manager”

    Where is that? Is this considered a module, plugin or extension?

    (On the last meltdown, I lost acces to my Extensions)

  • #5 / Mar 02, 2011 3:50pm

    Mark Bowen

    12637 posts

    Hiya,

    Sorry should have mentioned that MX Universal Editor requires the free FieldFrame extension in order to work.

    Best wishes,

    Mark

  • #6 / Mar 02, 2011 5:02pm

    Ingmar

    29245 posts

    Thanks, Mark. Does that make sense?

  • #7 / Mar 03, 2011 10:20am

    cfp700

    89 posts

    OK, I grabbed and uploaded FieldFrame to the extensions folder as directed.

    But, here’s the rub: when we experienced a melt-down last summer, we lost the ability to get into the Extensions Manager. (I’m on 1.6.9 right now). That’s the only functionality we seem to be missing; can get into Modules, Plug-ins, etc.

    So that issue has to be fixed first. Wondering if an upgrade to 1.7.0 might help address what’s missing?

  • #8 / Mar 03, 2011 10:24am

    Mark Bowen

    12637 posts

    When you say you lost the ability what do you mean exactly? Does the page come up at all or is it blank? Do you get any errors or anything?

    Best wishes,

    Mark

  • #9 / Mar 03, 2011 10:47am

    cfp700

    89 posts

    Admin/Utilities/Extensions Manager results in a blank screen (no error msgs)

    The resultant url is

    http://www.firenews.net/*****system*****/index.php?S=0&C=admin&M=utilities&P=extensions_manager

  • #10 / Mar 03, 2011 10:56am

    Mark Bowen

    12637 posts

    Try editing your system/config.php and change this line :

    $conf['allow_extensions'] = "y";

    to this instead :

    $conf['allow_extensions'] = "n";

    Hopefully that should then allow your extensions manager page to show up and then you can see what extensions you have installed and see if you think any of those might be causing the problem.

    Do be aware though that turning off extensions may affect your site if any of the extensions control anything on the front end of the site so it might be worthwhile turning the site off for a while whilst you are doing this just to be safe.

    Best wishes,

    Mark

  • #11 / Mar 03, 2011 12:52pm

    cfp700

    89 posts

    Just checked, it is already set to “n”

  • #12 / Mar 04, 2011 4:21am

    John Henry Donovan

    12339 posts

    cfp700,

    How are counties added to your entry already? Are they categories?

    Presuming that all your county graphics are named accordingly and match your category names, you could easily do something like this. You wouldn’t have to go near another custom field

    {exp:weblog:entries limit="1" url_title="{segment_3}"}
    
    {title}
    
    {categories}/images/counties/{category_url_title}.jpg{/categories}
    
    {body}
    
    {/exp:weblog:entries}

    we lost the ability to get into the Extensions Manager. (I’m on 1.6.9 right now). That’s the only functionality we seem to be missing; can get into Modules, Plug-ins, etc

    Before you do what Mark suggests turn on Error Reporting and visit that blank page again and hopefully you will see an error which will tell you straight away which extension is the culprit

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases