• tvExplorer 0.7 betaTest#

  • heliotrope Reply #1, 4 years, 10 months ago

    Reply


  • krypto Reply #2, 4 years, 10 months ago

    Reply
    Hi heliotrope!

    I found the right forum for my questions
    It seems I still have this problem:

    Fatal error: Call to undefined method MakeForm::fetch() in C:\Program Files\xampp\htdocs\096\modx-0.9.6\assets\modules\tvEditor\class\tveditor.class.php on line 1762
    here is my snippet call

    [!tvExplorer? &dittoName=`Ditto` &dittoSnippetParameters=`tpl:Katalogtpl|depth:1|parents:14|display:10` &formTPL=`sampleform`!]
    
    [+tve.searchForm+]
    [+tve.dittoList+]


    and here is my form chunk:

    <form action="[~[*id*]~]" method="get" >
    
    <fieldset>
    [+tve.zupanija:filter->7+]
    </fieldset>
    <fieldset>
    [+tve.category:filter->7+]
    </fieldset>
    <fieldset>
    [+tve.price:filter->7+]
    </fieldset>
    <fieldset class="sendForm">
    <input type="submit" name="search" value="Search" />
    </fieldset>
    </form>
    


    So what am I doing wrong? I am testing this on a local apache network


  • heliotrope Reply #3, 4 years, 10 months ago

    Reply
    Hi,

    never had this error before.
    your snippet call and your form are correct.

    I'm looking at the code and don't find where the error could come from.

    I'll be back in a couple of hour.
    If you are on line tonight join me on skype and we'll try to fix this together.

    :-)


  • krypto Reply #4, 4 years, 10 months ago

    Reply
    hey there,

    sorry I was out but if your are still around, I don't have skype but I am currently on messenger:

    krypto-spiderman@hotmail.com

    edit
    guess we couldn't get together tonight maybe tomorrow, i will be on messenger so hopefully we can work through this.


  • heliotrope Reply #5, 4 years, 10 months ago

    Reply
    Issue solved.

    the version used by krypto was an older one posted in french forum.

    :-)


  • Dimmy Reply #6, 4 years, 10 months ago

    Reply
    Nice work Heliotrope,

    Thank you for assisting me to get this to work. here is my call:
    [[tvExplorer? &dittoSnippetParameters=`parents:6|tpl:ditto_aanbod_tpl1|tplAlt:ditto_aanbod_tpl2|displayArchive:0|summarize:999|total:999` &dittoName=`Ditto` &formTPL=`tve`]]
    
    [+tve.searchForm+]
    [+tve.dittoList+]
    
    


    and my form template:

    <form action= "[~[*id*]~]"method= "get" >
    <table>
    <tr><td class="een">Kernwoord</td><td class="twee">[+tve.keywordsSearch:label->+]</td><td>
    [+tve.merk:filter->9:label->Merk:tvtype->dropdown+]</td></tr>
    
    <tr><td>Prijs van</td><td>[+tve.prijs:#RANGE{elements->@CHUNK priceList:tvtype->select:filter->3:label->:extra-></td>
    <td class="drie">||elements->@CHUNK priceList:tvtype->select:filter->4:label->Tot}+]</td></tr>
    
    <tr><td>In catogorie</td><td colspan="2">
    [+tve.indeling:filter->9:label->indeling:tvtype->checkbox+]</td></tr>
    <tr><td></td><td></td><td>
    <input style="float: right;" type="submit" value="Zoek"  name="search" /></td></tr>
    </form>
    </table>
    


    and here you see the result:
    http://www.caravanking.nl/actueel-aanbod.html

    the tricky part was the split price tags but helio helped me with that.

    greets


  • krypto Reply #7, 4 years, 10 months ago

    Reply
    Hi heliotrope~

    When I click submit all that happens is it appends values to the url:

    index.php?zupanija=Sisacko-moslovacka&category=Stan&price=&tve_search=Search

    I assume ditto should be picking up these params and giving output but it seems it is not happening. Any ideas?


  • heliotrope Reply #8, 4 years, 10 months ago

    Reply
    Hi,

    if you don't have FURLs enabled, you have to add an hidden field in your form to pass the id value.



    :-)


  • doze Reply #9, 4 years, 10 months ago

    Reply
    Great work Heliotrope! Nice to see public beta finally.. I know you have done a lot work with this one and it is very much appreciated! This is an excellent resource to have in MODx.


  • heliotrope Reply #10, 4 years, 8 months ago

    Reply
    @krypto

    index.php?zupanija=Sisacko-moslovacka&category=Stan&price=&tve_search=Search

    To activate tvexplorer the submit name must be "search".
    If you are using tveID param then you have to prepend the name with tveID + "_"

    Your mistake comes from my sample code which is wrong.

    So to fix your call

    Change the submit name from tve_search to search

    and add

    in your formTPL
    Mandatory when FURLS are off

    @doze
    sorry for this late reply
    Thx for your support and testing during the development

    :-)