Customize jBackapp for K2 items
Less
More
-
Posts: 36
-
Thank you received: 0
-
-
9 years 3 months ago #4555
by alphaa
on your previous post, I see you put it in your controllers:
$scope.items = items.articles;
instead of
$scope.items = data.items;
and also :
$scope.items = data.items;
instead of
$scope.items = [];
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
9 years 3 months ago #4556
by mobilechipmunk
I had it correct I think then changed it. now i've changed it back and nothing.
.controller('SectionsCtrl', function($scope, $state, $stateParams, $ionicPopup, FeedService) {
$scope.items = [];
$scope.successGetSectionContent = function(data) {
$scope.maxIntro = 100;
$scope.items = data.items;
for (var i = 0; i < $scope.items.length; i++) {
$scope.items.content = $scope.items.content.replace(/<[^>]+>/gm, '');
if ($scope.items.content.length > $scope.maxIntro) {
$scope.items.content = $scope.items.content.substr(0, $scope.maxIntro) + '...';
}
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 36
-
Thank you received: 0
-
-
9 years 3 months ago #4557
by alphaa
now you get commend section.html content.html like early without changing anything and you retries
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
9 years 3 months ago #4559
by mobilechipmunk
I have your exact code above and it's all blank. I'm getting the fields from postman and it works in postman.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 3 months ago #4563
by admin
Dear all,
I think it is a good idea to release another jBackend Hello World mobile app for K2 content. It will be available in a day or two.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 36
-
Thank you received: 0
-
-
Time to create page: 0.146 seconds