Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • Manager, Parser & the Core
  •  
  • [Revo] Several questions about the manager, file upload, CMP ...#

  • 7557
    61

    dj13 Reply #1, 1 year, 7 months ago

    Reply
    • Link to this post#1
    Hi.
    How to:
    1.Hide or show the resources in the tree that are unpublished.
    2.Using something else for title in tree instead of pagetitle (resource alias example).
    3.Directly upload the file while editing TV (file or image). Do not use Modx browser, just regular form (choose file - upload).
    4.Rename file after upload, and that new name is based on resource alias.
    5.Uploaded files to be placed in a dynamically created folders, which will be called like resource parent ID.
    6.Disable tree in custom Manager pages, leave other header elements intact
    Tnx.


  • 4172
    1,614
    xdbedit - create your own CMP to edit custom-tables with TV-input-types
    MIGX (multiItemsGridTV, sortable multirecord-TV)
    formit2db with autocreate schema&classes
    formit2resource
    custom-tv-input-type for revo:imagelistTV
    quickCMP - CMP for creating simple backend-'modules' per snippets
    bloX/Xedit - Ressource-Listing and frontend-sorting/editing....

    Bruno17 Reply #2, 1 year, 7 months ago

    Reply
    • Link to this post#2
    Quote from: dj13 at Oct 23, 2010, 03:17 AM
    Hi.
    How to:
    1.Hide or show the resources in the tree that are unpublished.
    2.Using something else for title in tree instead of pagetitle (resource alias example).
    don't know yet
    3.Directly upload the file while editing TV (file or image). Do not use Modx browser, just regular form (choose file - upload).
    custom-tv-input-type
    4.Rename file after upload, and that new name is based on resource alias.
    5.Uploaded files to be placed in a dynamically created folders, which will be called like resource parent ID.
    plugin onBeforeDocFormSave and or onDocFormSave
    6.Disable tree in custom Manager pages, leave other header elements intact
    don't know yet


  • 7557
    61

    dj13 Reply #3, 1 year, 7 months ago

    Reply
    • Link to this post#3
    Bruno17 thanks for the fast response.


  • 24013
    7
    44+ MODXed sites and counting...

    ptejera Reply #4, 1 year, 5 months ago

    Reply
    • Link to this post#4
    Quote from: Bruno17 at Oct 23, 2010, 03:39 AM
    3.Directly upload the file while editing TV (file or image). Do not use Modx browser, just regular form (choose file - upload).
    custom-tv-input-type

    Bruno,

    You said this could be done with a custom-tv-input-type. Could you give some direction on how to accomplish that There is a feature for 2.1.0 that is close (http://bugs.modx.com/issues/2569 ). But having the ability to DIRECTLY upload files (e.g. slider images to 'assets/images/slider' and staff pictures to '/assets/images/staff' or MP3 audio to '/assets/audio/samples') when saving the page would be INCREDIBLY helpful! I have a project coming up within the next couple of weeks where the client will have up to 3 images and 5 MP3 files associated with each page.

    Thanks so much for your help. Have a great day!

    Paul


  • 28215
    4,064
    - MODX Senior Developer
    shaun mccormick | modx foundation | modx revolution | bugtracker | official docs | modx@github | api docs | splittingred.com

    splittingred Reply #5, 1 year, 5 months ago

    Reply
    • Link to this post#5
    Quote from: dj13 at Oct 23, 2010, 03:17 AM
    1.Hide or show the resources in the tree that are unpublished.
    A good feature request: http://bugs.modx.com

    2.Using something else for title in tree instead of pagetitle (resource alias example).
    This was added in 2.0.5, which will be out very soon.

    3.Directly upload the file while editing TV (file or image). Do not use Modx browser, just regular form (choose file - upload).
    Custom TV input type.

    4.Rename file after upload, and that new name is based on resource alias.
    Custom TV input type.

    5.Uploaded files to be placed in a dynamically created folders, which will be called like resource parent ID.
    Custom TV input type.

    6.Disable tree in custom Manager pages, leave other header elements intact
    Add this JS code to happen somewhere in your CMP:

    Ext.onReady(function() { Ext.getCmp('modx-layout').hideLeftbar(); });


  • 7895
    1

    dou Reply #6, 1 year, 4 months ago

    Reply
    • Link to this post#6
    Quote from: splittingred at Dec 08, 2010, 01:25 PM
    3.Directly upload the file while editing TV (file or image). Do not use Modx browser, just regular form (choose file - upload).
    Custom TV input type.

    Hi
    I tried to implement file upload using ExtJS File Upload Field http://dev.sencha.com/deploy/dev/examples/form/file-upload.html For this I created my own Custom TV Input Type as described here http://rtfm.modx.com/display/revolution20/Adding+a+Custom+TV+Input+Type But I got an error when a resource with Custom TV is rendered Uncaught TypeError: Cannot call method 'applyStyles' of null and forms tags is missing in the resulting html code.
    I tried to manually put a simple form in my template
    <form action="upload.php">
        <input>
    </form>
    

    The result was only this
    <input>
    

    tags is gone!

    How to use the forms in Custom TV Input Type?

    Thanks!


  • 15083
    655

    jusmeig Reply #7, 4 months, 1 week ago

    Reply
    • Link to this post#7
    {
                xtype: 'modx-combo-browser'
                ,fieldLabel: 'Category Image'
                ,name: 'url'
                ,id: 'pm-'+Ext.id()+'-url'
                ,allowBlank: false
                ,hideFiles: true
            }


    This will give you a MODx browser in an CMP using MODext


  • 38695
    2

    tazeverywhere Reply #8, 3 months, 1 week ago

    Reply
    • Link to this post#8
    Hello dou,

    did you find a solution for your custom-tv "direct-upload" image ?
    I need to do exactly the same for a urgent project, any help will be great !

    Thx





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
Bruno17, dj13, dou, jusmeig, ptejera, splittingred, tazeverywhere

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy