× Requests and support related to jBackend.

Customize jBackapp for K2 items

More
8 years 4 months ago #4555 by alphaa
Replied by alphaa on topic Customize jBackapp for K2 items
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.

More
8 years 4 months ago #4556 by mobilechipmunk
Replied by mobilechipmunk on topic Customize jBackapp for K2 items
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.

More
8 years 4 months ago #4557 by alphaa
Replied by alphaa on topic Customize jBackapp for K2 items
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.

More
8 years 4 months ago #4559 by mobilechipmunk
Replied by mobilechipmunk on topic Customize jBackapp for K2 items
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.

More
8 years 4 months ago #4563 by admin
Replied by admin on topic Customize jBackapp for K2 items
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.

More
8 years 4 months ago #4577 by alphaa
Replied by alphaa on topic Customize jBackapp for K2 items
Ok , waiting !

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds