[TYPO3-german] ext. news detail view mit ajax

chris Wolff chris at connye.com
Sun Sep 15 23:26:42 CEST 2013


hi Mathias,

folgendes sollte eigendlich funktionieren (ungetestet):

$('a.more').click(function(event){
   event.preventDefault() // normalen href nicht aufrufen
   var url = $(this).attr('href');
        $.ajax({
            url: url,
            success: function(data) {
                $("#article").html(data);
            }
        });
});

gruss chris



2013/9/13 Matthias Eberlein <skydivematy at gmail.com>:
> Folgendes habe ich geändert und so bekomme ich schon mal als result die
> deteil view des articles in mein <div>.
>
> setup/
>
>
> AJAX_news = PAGE
> AJAX_news {
>  typeNum = 555
>  config {
>    disableAllHeaderCode = 1
>    xhtml_cleaning = 0
>    admPanel = 0
>    debug = 0
>    no_cache = 1
>  }
>  10 = USER
>  10 {
>    userFunc = tx_extbase_core_bootstrap->run
>    extensionName = News
>    pluginName = Pi1
>    switchableControllerActions {
>      News {
>        1 = detail
>      }
>    }
>    settings < plugin.tx_news.settings
>    settings {
>      startingpoint = 11
>    }
>  }
> }
>
> js/
>
>
>    $('a.more').live('click', function() {
>        var $this = $(this);
>        var url = $this.attr('href');
>         $.ajax({
>             url: url,
>             success: function(data) {
>                 $("#article").html(data);
>             }
>         });
>        return false;
>    });
>
> fluid template news/
>
>
> <a class="more"
> href="{n:link(newsItem:newsItem,settings:settings,uriOnly:1)}&type=555">Read
> more</a>
>
>
> gruß
> matthias
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



-- 
christian wolff - webdeveloper, tech-loving geek and typo3 enthusiast
telefon: +49 30 347 244 88
mobil:  +49 179 49 44 758
email: chris at connye.com
adresse: friedelstraße 31 - 12047 berlin

xing-profil: http://www.xing.com/profile/Christian_Wolff43
google+: https://plus.google.com/u/0/115669673917212236875/posts?hl=de
facebook: https://www.facebook.com/1stMachine
flattr: https://flattr.com/profile/1stmachine


More information about the TYPO3-german mailing list